Print Page | Close Window

why my status bar not in office2003 style

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=918
Printed Date: 25 December 2024 at 8:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: why my status bar not in office2003 style
Posted By: nkfeiyang
Subject: why my status bar not in office2003 style
Date Posted: 05 July 2004 at 8:08pm

I have defined my status to CXTStatus, how ever it still look like in old style.

How to solve this problem?




Replies:
Posted By: Ark42
Date Posted: 05 July 2004 at 8:46pm

There is no 2003 style really, just Office XP or normal.  Unfortunately the CXTStatusBar prevents the Windows XP shaded status bar, so what I used was:

class CXTStatusBarEx : public CXTStatusBar
{
    DECLARE_DYNAMIC(CXTStatusBarEx)
    afx_msg void OnPaint() { CStatusBar::OnPaint(); }
    afx_msg BOOL OnEraseBkgnd(CDC* pDC) { return CStatusBar::OnEraseBkgnd(pDC); }
    DECLARE_MESSAGE_MAP()
};
IMPLEMENT_DYNAMIC(CXTStatusBarEx, CXTStatusBar)
BEGIN_MESSAGE_MAP(CXTStatusBarEx, CXTStatusBar)
    ON_WM_PAINT()
    ON_WM_ERASEBKGND()
END_MESSAGE_MAP()

I suppose a xtAfxData.bXPMode = TRUE; might help someplace if thats what you mean though.



Posted By: nkfeiyang
Date Posted: 05 July 2004 at 8:49pm

Thanks .But however i did not find code like that in some demos provided by codejock.

I only find that the statusbar's class name is changed from CStatus to CXTStatus.



Posted By: Ark42
Date Posted: 05 July 2004 at 8:52pm
I think you need to re-read mypost, I wrote that little class CXTStatusBarEx and thats what I use, basically to call directly to the CStatusBar paint routines while still getitng all the other useful functionality of the CXTStatusBar.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net