|
-
August 24th, 1999, 04:19 PM
#1
[q] the difference between ON_COMMAND_EX and ON_UPDATE_COMMAND_UI
to the mfc gurus,
except for the obvious prototypes and function declaration difference
between the two:
// UPDATE_COMMAND_UI
void CMainFrame::OnMyUpdateCommandUI(CCmdUI* pCmdUI)
{
// some code
}
//ON_COMMAND_EX
void CMainFrame::OnMyCommandEX(UINT nID)
{
// some code
}
why can't the pointer to CCmdUI* pCmdUI be easly got inside of the
ON_COMMAND_EX handler (if so how)? I want to be able to enable or
disable a toolbar button from the ON_COMMAND_EX handler but no one
seems to know the ON_COMMAND_EX handler but I'm quite sure it can be
done (can it)? there is very little verbiage on ON_COMMAND_EX! and I
would like to know the proper usage of both of them.
all help will be greatly appreciated
michael b. williams
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
|