Print Page | Close Window

How to switch the main menu resource?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2309
Printed Date: 01 May 2024 at 6:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to switch the main menu resource?
Posted By: freehawk
Subject: How to switch the main menu resource?
Date 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

 




Replies:
Posted By: freehawk
Date Posted: 16 June 2005 at 2:27am

Please help me.

-Freehawk



Posted By: Oleg
Date Posted: 17 June 2005 at 7:11am
pCommandBars->GetMenuBar()->SetMenu...

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: freehawk
Date 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?

 



Posted By: freehawk
Date 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?

 



Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net