![]() |
How to disable menu item in CXTPMenuBar |
Post Reply
|
| Author | |
jhuckins
Newbie
Joined: 17 September 2007 Location: United States Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: How to disable menu item in CXTPMenuBarPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |