Help Center

CButton.GetCheckmethod

Gets the check state of a radio button or check box.

WindowsmethodCButton.incdocumented

Syntax

FUNCTION GetCheck (BYVAL hButton AS HWND) AS LRESULT

Return value

The return value from a button created with the BS_AUTOCHECKBOX, BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or BS_3STATE style can be one of the following.

Description

Gets the check state of a radio button or check box.

Example

DIM bst AS LRESULT = CButton.GetCheck(hButton)

Reference

  • Include file CButton.inc
  • Defined in AfxNova/CButton.inc:305
  • Documented in Windows/WIndows Controls/CButton Class.md
  • Topic: CButton Class