◄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 ♦