Print Page | Close Window

How to disable menu item in CXTPMenuBar

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=8349
Printed Date: 13 November 2025 at 9:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to disable menu item in CXTPMenuBar
Posted By: jhuckins
Subject: How to disable menu item in CXTPMenuBar
Date Posted: 08 October 2007 at 7:20pm
I can't find any info in the XTP documentation about disabling a menu item in a CXTPMenuBar. After the application menu was added via CXTPMenuBar::SetMenu(), I tried this:
 
m_pMenuBar->GetMenu()->EnableMenuItem(...);
 
But this crashed.
 
Can somebody tell me how to do this? I need to disable a menu item by command ID (MF_BYCOMMAND).
 
Regards,
Jeff


-------------
Regards,
Jeff



Replies:
Posted By: Oleg
Date Posted: 09 October 2007 at 1:13am
Hello,
 
Please check our samples.
 
You need add Upadte handler and enable/disable/check/uncheck items in Update handlers.


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