BM_GETCHECK message
Gets the check state of a radio button or check box. You can send this message explicitly or use the Button_GetCheck macro.
Parameters
- wParam
-
Not used; must be zero.
- lParam
-
Not used; must be zero.
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.
| Return code | Description |
|---|---|
|
Button is checked. |
|
Button is grayed, indicating an indeterminate state (applies only if the button has the BS_3STATE or BS_AUTO3STATE style). |
|
Button is cleared |
Remarks
If the button has a style other than those listed, the return value is zero.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
See also
- Reference
- BM_GETSTATE
- BM_SETCHECK
Send comments about this topic to Microsoft
Build date: 10/27/2012
