Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Disable popup menu item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable popup menu item

 Post Reply Post Reply
Author
Message
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post Topic: Disable popup menu item
    Posted: 29 November 2007 at 9:31am
Hi,
 
I have a menu structure like this:
 
Edit
    Copy
    Cut
    Paste
    Move
         Left
         Right
         Up
         Down
    Properties
 
Here Move is a popup menu item which contains a submenu. I'd like to disable the "Move" item now but since it's a popup menu item, it has no ID so I cannot use OnUpdate... (I'm using VC6.0 + XTP11.2.0)
 
Anyone can help me?
 
Thanks!
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: 30 November 2007 at 1:10am
Hi,
 
We have trick to assign some id for Popup items: in menu resource editor add id after \t in caption:
 
Move\t200.
 
Now Move has id 200 and you can add Update handler.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2007 at 8:34am
Thanks oleg, it's so cool!
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.078 seconds.