Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Refreshing Menus, CommandBars, and Panes?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Refreshing Menus, CommandBars, and Panes?

 Post Reply Post Reply
Author
Message
AdrianM View Drop Down
Newbie
Newbie


Joined: 08 August 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdrianM Quote  Post ReplyReply Direct Link To This Post Topic: Refreshing Menus, CommandBars, and Panes?
    Posted: 21 February 2005 at 12:21pm

How do I refresh ALL the Menus, CommandBars, and Panes when the following happens?  Currently, everything stays the old color.

 

void CMainFrame::OnThemeColorsBlue()

{

     XTPColorManager()->SetLunaTheme(xtpSystemThemeBlue);

}

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 22 February 2005 at 2:24am

XTPPaintManager()->RefreshMetrics();

pCommandBars->RedrawCommandBars();

 

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


Joined: 08 August 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdrianM Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 3:29pm

Hi Oleg,

I tried it, and it didn't work.  Any idea why?

void CMainFrame::OnThemecolorsOlive()

{

XTPColorManager()->SetLunaTheme(xtpSystemThemeOlive);

 

#ifdef _XTP_INCLUDE_COMMANDBARS

CXTPPaintManager::RefreshMetrics();

GetCommandBars()->RedrawCommandBars();

#endif

}

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.156 seconds.