How to check state whether my menu command(or tool bar button is
pressed or not) is checked or not .
Thanks in advance.
regards
ram
Printable View
How to check state whether my menu command(or tool bar button is
pressed or not) is checked or not .
Thanks in advance.
regards
ram
raman wrote:[color=blue]
> How to check state whether my menu command(or tool bar button is
> pressed or not) is checked or not .
>
> Thanks in advance.
>
> regards
>
> ram[/color]
Maybe I don't understand your question, but in an MFC program the menu
and toolbar state should be controlled by your own variables, such as
m_bShowingSettings in the code below. So if you use the
ON_UPDATE_COMMAND_UI mechanism you would simply test your own
controlling variables to determine the state.
void CMainFrame::OnUpdateViewSettings(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(m_bShowingSettings);
}
--
Scott McPhillips [VC++ MVP]
check class CCmdUI
"raman" <patil_raman@yahoo.com> ?????
news:a45af865.0401120744.2553a285@posting.google.com...[color=blue]
> How to check state whether my menu command(or tool bar button is
> pressed or not) is checked or not .
>
> Thanks in advance.
>
> regards
>
> ram[/color]