CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    4

    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?


  2. #2
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured