Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CButton::SetCheck
CButton                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetCheck( int nCheck );
 
  Parameter   Description
 
  <nCheck>    Specifies the check state. This parameter can be one of the
              following values:
 
              Value   Meaning
 
              0       Set the button state to unchecked.
 
              1       Set the button state to checked.
 
              2       Set the button state to indeterminate. This value
                      can only be used if the button has the BS_3STATE or
                      BS_AUTO3STATE style.
 
  Remarks
 
  Sets or resets the check state of a radio button or check box. This
  member function has no effect on a pushbutton.
 
  See Also
 
  CButton::GetCheck, CButton::GetState, CButton::SetState,
  BM_SETCHECK
 
 
                                     -♦-