Menu check button ...
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I handle a check menu item like this: // the update command void CAppDlg::OnUpdateMenuItem(CCmdUI *pCmdUI) { pCmdUI->SetCheck(BoolVar); ........ } and // the command void CAppDlg::OnInterfaceMenuItem() { BoolVar = BoolVar == 0 ? 1 : 0; } The solution works with one exception: when the item is not checked the sign before the caption does not dissapear (but it works just fine). How do i get that "check" sign to dissapear ? If the check state is false, should not dissapear by default ?