|
-
May 4th, 1999, 03:17 PM
#1
UPDATE_COMMAND_UI handling
Within a simple dialog program I want to gray out or darken certain main menu pull down items based on the current state of program
execution. I have implemented this functionality in a MDI aplication where I tied a simple hander to the UPDATE_COMMAND_UI
message for the menu item to be manipulated. This worked just fine with the handler called as the user opened the specific pull-down,
but before the sub items are displayed which is perfect for deciding to darken an item or to gray it.
I have tried to implement the same functionality in my dialog base application, but it appears that the handler is not called until after the pull
down menu items have been displayed. This is to late. I don't completely understand the framework differences between dialog based
applications and document view applications to understand what is different in handling the UPDATE_COMMAND_UI message or if
it even makes sense to handle it in a dialog application. However, graying out menu items seems like such a fundamental thing to do
that there must be a correct way to do it in a dialog application. Any ideas?
-
May 4th, 1999, 04:40 PM
#2
Re: UPDATE_COMMAND_UI handling
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
|