Help Center

CButton.GetStatemethod

Retrieves the state of a button or check box.

WindowsmethodCButton.incdocumented

Syntax

FUNCTION GetState (BYVAL hButton AS HWND) AS LRESULT

Return value

The return value specifies the current state of the button. It is a combination of the following values.

Description

Retrieves the state of a button or check box.

Example

DIM bst AS LRESULT = CButton.GetState(hButton)

Reference

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