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