Quote:
> I have a menu item that needs to use the "check mark" toggle. I have added
> an event handler for the menu item.
> The menu's id is ID_MENU_ITEM. From the OnMenuItem() function how do I see
> if it is already checked and check it if it is not?
> Bob T
Add an event handler for the ON_UPDATE_COMMAND_UI message for the same
ID. The BOOL value that you pass to SetCheck will control the check
mark.
void CMainFrame::OnUpdateColors(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(m_bShowingColors);
Quote:
}
--
Scott McPhillips [VC++ MVP]