Export (0) Print
Expand All

CCmdUI::SetCheck 

Call this member function to set the user-interface item for this command to the appropriate check state.


virtual void SetCheck(
   int nCheck = 1 
);

Parameters

nCheck

Specifies the check state to set. If 0, unchecks; if 1, checks; and if 2, sets indeterminate.

This member function works for menu items and toolbar buttons. The indeterminate state applies only to toolbar buttons.

Community Additions

ADD
Show:
© 2015 Microsoft