msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
BM_QUERYCHECK (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINBUTTONS
 
BM_QUERYCHECK
mp1 = 0L;    /* not used, must be zero */
mp2 = 0L;    /* not used, must be zero */
 
An application sends a BM_QUERYCHECK message to determine the checked state
of a button control.
 
This message does not use any parameters.
 
Return Value
 
The return value from a button control created with the BS_CHECKBOX,
BS_AUTOCHECKBOX, BS_RADIOBUTTON, BS_AUTORADIOBUTTON, BS_3STATE, or
BS_AUTO3STATE style is one of the following values:
 
Value  Meaning
────────────────────────────────────────────────────────────────────────────
0      Button state is unchecked.
 
1      Button state is checked.
 
2      Button state is indeterminate.
 
If the button style is any other value, the return value is zero.
 
See Also
 
BM_QUERYHILITE, BM_SETCHECK