why my status bar not in office2003 style |
Post Reply |
Author | |
nkfeiyang
Newbie Joined: 15 June 2004 Location: India Status: Offline Points: 9 |
Post Options
Thanks(0)
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? |
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
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. |
|
nkfeiyang
Newbie Joined: 15 June 2004 Location: India Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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. |
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |