CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1

    Warning: not executing disabled command

    What does this mean?

    Warning: not executing disabled command

    This occurs when I try to click on a menu item that I have mapped into the View. And the menu item isn't greyed out or disabled either.

  2. #2
    Join Date
    Nov 1999
    Dresden / Germoney

    Re: Warning: not executing disabled command

    The trace statement appears in CWnd::OnCommand, and from the source code (and the accompanying comment) I read this:

    Before MFC starts routing a WM_COMMAND message, it checks if the command has already been disabled, by sending an UPDATE_CMD_UI "request". Reason for this: UI gets updated in MFC's idle handler only, which mght be called long after a logical state change has occured ("long" means a few 100 ms, but this are a few million clock ticks nowadays...)

    I don't know of any other reason tis might happen, except that you actually have an UpdateCmdUI handler for this command message, and this one already noticed some state chaneg (e.g. you set a flag that the command is now disallowed - but when??)

    Helped a bit?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.