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_SETCHECK (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINBUTTONS
 
BM_SETCHECK
mp1 = MPFROMSHORT((USHORT) fCheck);    /* check state              */
mp2 = 0L;                              /* not used, must be zero   */
 
An application sends a BM_SETCHECK message to set the checked state of a
button control.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fCheck     Low word of mp1. Specifies the check state. This parameter can be
           one of the following values:
 
           Value  Meaning
           ─────────────────────────────────────────────────────────────────
           0      Set the button state to unchecked.
 
           1      Set the button state to checked.
 
           2      Set the button state to indeterminate. This value can be
                  used only if the button has the BS_3STATE or BS_AUTO3STATE
                  style.
 
Return Value
 
The return value is the previous check state.
 
See Also
 
BM_QUERYCHECK, BM_SETDEFAULT, BM_SETHILITE