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::GetCheck
CButton                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetCheck() const;
 
  Remarks
 
  Retrieves the check state of a radio button or check box.
 
  Return Value
 
  The return value from a button control created with the BS_AUTOCHECKBOX,
  BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or
  BS_3STATE style is one of the following values:
 
  Value   Meaning
 
  0       Button state is unchecked.
 
  1       Button state is checked.
 
  2       Button state is indeterminate (only applies if the button has
          the BS_3STATE or BS_AUTO3STATE style).
 
  If the button has any other style, the return value is 0.
 
  See Also
 
  CButton::GetState, CButton::SetState, CButton::SetCheck,
  BM_GETCHECK
 
 
                                     -♦-