Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - System menu color change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

System menu color change

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

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Topic: System menu color change
    Posted: 13 September 2005 at 8:11am

If i change the system menu color, it does not change the menu color of my application. Why does it happen? Anysolution to this.

I am using OnSYsColorChange() event and tried with

XTPColorManager()->RefreshColors();
XTPPaintManager()->RefreshMetrics();

but none of these functions change the color of the menu. Pl. suggest.

Regards
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2005 at 2:11pm

May be you use custom theme and don't call base member in RefreshMetrics?

Must. Check this in our samples.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2005 at 1:45am

Somehow i managed with the following code... Is it correct?

CXTPPaintManager::SetTheme(  xtpThemeOfficeXP);
 COLORREF  ref = XTPColorManager()->GetColor(COLOR_MENUTEXT  );
 XTPColorManager()->SetColor(COLOR_BTNTEXT ,ref);
 XTPColorManager()->SetColor(XPCOLOR_MENUBAR_TEXT&nb sp; ,ref);

 XTPPaintManager()->RefreshMetrics();
 GetCommandBars()->RedrawCommandBars();

Regards
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.064 seconds.