Partilhar via


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.

Remarks

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

Requirements

Header: afxwin.h

See Also

Reference

CCmdUI Class

Hierarchy Chart

CCmdUI::SetRadio

Other Resources

CCmdUI Members