Share via


BM_GETCHECK (Compact 2013)

3/28/2014

This message is sent by an application to retrieve the check state of a radio button or check box.

Syntax

BM_GETCHECK wParam = 0; 
    lParam = 0;

Parameters

  • wParam
    Not used.
  • lParam
    Not used.

Return Value

A button created with the BS_AUTOCHECKBOX, BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or BS_3STATE returns one of the values described in the following table.

Value

Description

BST_CHECKED

The button is checked.

BST_INDETERMINATE

The button is grayed, indicating an indeterminate state (applies only if the button has the BS_3STATE or BS_AUTO3STATE style).

BST_UNCHECKED

The button is unchecked.

If the button has any other style, the return value is zero.

Requirements

Header

winuser.h

See Also

Reference

Button Messages
BM_GETSTATE
BM_SETCHECK