Hi,
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??)
Bookmarks