Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - why my status bar not in office2003 style
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

why my status bar not in office2003 style

 Post Reply Post Reply
Author
Message
nkfeiyang View Drop Down
Newbie
Newbie
Avatar

Joined: 15 June 2004
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nkfeiyang Quote  Post ReplyReply Direct Link To This Post Topic: why my status bar not in office2003 style
    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?

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
nkfeiyang View Drop Down
Newbie
Newbie
Avatar

Joined: 15 June 2004
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nkfeiyang Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.