BM QUERYCHECK
Appearance
This message returns the checked state of a button control.
Syntax
param1 ULONG ulReserved; /* Reserved value, should be 0. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- ulReserved (ULONG) - input
- Reserved value, should be 0.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- usCheck (USHORT) - returns
- Check indicator.
- 0: The button control is in unchecked state.
- 1: The button control is in checked state.
- 2: The button control is in indeterminate state.
Remarks
The button control responds to this message, if it has a style of BS_CHECKBOX, BS_AUTOCHECKBOX, BS_RADIOBUTTON, BS_AUTORADIOBUTTON, BS_3STATE, or BS_AUTO3STATE, by setting usCheck as appropriate. If the button has any other style, the button control takes no action other than to set usCheck to 0.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set usCheck to the default value of 0.