Print Page | Close Window

How to change CXTPMenuBar in the CXTPCommandBars?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13734
Printed Date: 28 February 2025 at 4:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change CXTPMenuBar in the CXTPCommandBars?
Posted By: littleameng
Subject: How to change CXTPMenuBar in the CXTPCommandBars?
Date Posted: 19 March 2009 at 3:22am

I had set the menu in the CXTPCommandBars, Now I want to dynamicly change the menu to another menu, how to do it?

the code:
 
   CXTPCommandBars* pCommandBars = GetCommandBars();
   CXTPCommandBar* pMenuBar = pCommandBars->SetMenu( _T("HomeMenuBar"), IDR_MAINFRAME);
 
thanks! Please help me!



Replies:
Posted By: Oleg
Date Posted: 20 March 2009 at 6:13am
Hi,
 
pMenuBar->LoadMenu(&menu);


-------------
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