Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to switch the main menu resource?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to switch the main menu resource?

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


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post Topic: How to switch the main menu resource?
    Posted: 02 June 2005 at 1:58am

Hello

 There are three main menu resource, I want to switch them dynamically. Please help me how to do. Thanks

BTW, do I need to switch childframe menu?

-Freehawk

 



Edited by freehawk
Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2005 at 2:27am

Please help me.

-Freehawk

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: 17 June 2005 at 7:11am
pCommandBars->GetMenuBar()->SetMenu...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2005 at 11:14pm

Originally posted by oleg oleg wrote:

pCommandBars->GetMenuBar()->SetMenu...

But tabbed MDIChild window is opened, the menu is changed. How to forbit to change the menu of child frame?

 

Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2005 at 12:06am

Please help me.

Thanks.

Originally posted by freehawk freehawk wrote:

Originally posted by oleg oleg wrote:

pCommandBars->GetMenuBar()->SetMenu...

But tabbed MDIChild window is opened, the menu is changed. How to forbit to change the menu of child frame?

 

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: 10 August 2005 at 3:49am

in MainFrame.cpp add

pMenuBar->SetFlags(xtpFlagIgnoreSetMenuMessage);

 

or just remove menu in resources for this child template.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.188 seconds.