I have an SDI application containing a Menu (IDR_MENU) and a Toolbar (IDR_TOOLBAR1).
When a perform click a certain button or menu item (RUN), I want specific menu items and Toolbar icons to become disabled. Each associated Toolbar Icon and Menu Item have the same ID (ID_ABORT for example).
I use the following to disable the 'Abort' functionality when it is NOT running...
void CMainFrame::OnUpdateFileAbort(CCmdUI* pCmdUI)
if (isRunning == false) pCmdUI->Enable(FALSE);
This works fine for the Menu item, but does not change the Toolbar icon.
Any ideas where I am going wrong...