Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to disable menu item in CXTPMenuBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to disable menu item in CXTPMenuBar

 Post Reply Post Reply
Author
Message
jhuckins View Drop Down
Newbie
Newbie


Joined: 17 September 2007
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhuckins Quote  Post ReplyReply Direct Link To This Post Topic: How to disable menu item in CXTPMenuBar
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.