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_SETDEFAULT (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINBUTTONS
 
BM_SETDEFAULT
mp1 = MPFROMSHORT((USHORT) fDefault);    /* default state          */
mp2 = 0L;                                /* not used, must be zero */
 
An application sends a BM_SETDEFAULT message to set the default state of a
button control that has the BS_PUSHBUTTON or BS_USERBUTTON style. If the
button does not have one of these styles, then the message has no effect.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fDefault   Low word of mp1. Specifies the default state. A value of TRUE
           sets the default state; a value of FALSE removes the default
           state.
 
Return Value
 
The return value is TRUE whether or not the default state is changed.
 
See Also
 
BM_SETCHECK, BM_SETHILITE