Print Page | Close Window

Getting CMenu * object for processing..

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=3396
Printed Date: 09 November 2025 at 5:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Getting CMenu * object for processing..
Posted By: jigarmehtamscit
Subject: Getting CMenu * object for processing..
Date Posted: 12 December 2005 at 1:47pm

Hi,

I am using CJ menubar to show menus in my application..

Now, to get the menu pointers (to check-uncheck the menu items according to the state of the application,) i need to get the CMenu *.. now, following code is failing..

CMenu *m_mainMenu = m_wndMenuBar.GetMenu();
CMenu *m_fileMenu = m_mainMenu->GetSubMenu(1);
CMenu *m_toolMenu = m_mainMenu->GetSubMenu(1);
CMenu *m_themeMenu = m_toolMenu->GetSubMenu(0);

But ont the second line itslef the code crashes... Please tell me where i am wrong..

 

 



-------------
Regards,
Jigar Mehta



Replies:
Posted By: Oleg
Date Posted: 14 December 2005 at 5:37am

Use Update handlers to check/uncheck items.

See any our CommandBars sample.



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


Posted By: jigarmehtamscit
Date Posted: 14 December 2005 at 2:41pm
Thx.. it works now..

-------------
Regards,
Jigar Mehta



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