This message is sent by an application to retrieve the check state of a radio button or check box.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
BM_GETCHECK wParam = 0; lParam = 0;
Return Values
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 | Button is checked. |
BST_INDETERMINATE | Button is grayed, indicating an indeterminate state (applies only if the button has the BS_3STATE or BS_AUTO3STATE style). |
BST_UNCHECKED | Button is unchecked |
If the button has any other style, the return value is zero.
See Also