Print Page | Close Window

How to add menu dynamically?

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=14339
Printed Date: 27 February 2025 at 6:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add menu dynamically?
Posted By: chas
Subject: How to add menu dynamically?
Date Posted: 19 May 2009 at 9:41pm

I used the code:

 CMenu* pMenu = GetMenu();

in CMainFrame(which is derived from CXTPFrameWnd) to access menu bar. But pMenu is always NULL.
 
But in common MFC program, the pMenu will not be NULL.
 
Does anyone can help me, how can I access menu bar in XTreme toolkit?
 
Thanks!



Replies:
Posted By: Oleg
Date Posted: 20 May 2009 at 1:59am
Hi,
 
Please check our samples and search forum. Discussed 1000 times. You need pCommandBars->GetMenuBar() method.


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


Posted By: chas
Date Posted: 20 May 2009 at 2:39am
OK.
 
Thanks!



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