Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Own Theme Menu Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Own Theme Menu Problem

 Post Reply Post Reply
Author
Message
Ocrana View Drop Down
Groupie
Groupie


Joined: 20 November 2007
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ocrana Quote  Post ReplyReply Direct Link To This Post Topic: Own Theme Menu Problem
    Posted: 14 October 2008 at 9:11pm
Hello,

I have changed the menu in my app to a style, like the MSMoney Sample do.
CXTPPaintManager::SetCustomTheme(new CMsMoneyTheme(RGB(140, 163, 196), RGB(91, 125, 173), RGB(122, 149, 187), RGB(74, 111, 165)));
GetCommandBars()->RedrawCommandBars();

The Menu is changed as expected but it occour also on other dialogs, but I want to use the Custom Theme only on the CommandBars of the dialog where I call this.
So is there a way to make this changes only on one dialog and leave the others as without?

Thanks,
Ocrana
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: 15 October 2008 at 7:20am
Hi,
 
Call GetCommandBars()->SetPaintManger(new CMsMoneyTheme(RGB(140, 163, 196), RGB(91, 125, 173), RGB(122, 149, 187), RGB(74, 111, 165)));
instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ocrana View Drop Down
Groupie
Groupie


Joined: 20 November 2007
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ocrana Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2008 at 7:27am
Perfect. Many thanks :)
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.031 seconds.