Jump to content

BM SETDEFAULT

From EDM2

This message sets the default state of a button control.

Syntax

param1
    USHORT usdefault; /* Default state. */

param2
    ULONG  ulReserved; /* Reserved value, should be 0. */

Parameters

usdefault (USHORT) - input
Default state.
TRUE: Display the button control in the default state.
FALSE: Display the button control in the nondefault state.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Successful operation.
FALSE: Error occurred.

Remarks

The button control responds to this message, if it has a style of BS_USERBUTTON or BS_PUSHBUTTON, by displaying the button control in the default or nondefault state as appropriate, and setting rc to TRUE.

If the button control has any other style, the button control takes no action other than to set rc to FALSE.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.