|
-
April 1st, 1999, 02:29 PM
#1
ON_UPDATE_COMMAND_UI question
Hi:
I have an output window that's a CRichEditCtrl, that I've created a context sensitive menu for. One of the options is 'Copy' to copy the selection in the window to the clipboard. When the user selects 'Copy' from the context menu, it goes and calls Copy(). This works fine, however I'd like to add an ON_UPDATE_COMMAND_UI handler to properly gray out the menu choice when nothing is selected. The problem I'm having is that my ON_UPDATE_COMMAND_UI code seems to get executed after the user makes a menu choice, not before, so 'Copy' is never grayed out. Is there some way around this problem?
thanks,
-Matt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|