BM_SETSTYLE message

Sets the style of a button. You can send this message explicitly or use the Button_SetStyle macro.

Parameters

wParam

The button style. This parameter can be a combination of button styles. For a table of button styles, see Button Styles.

lParam

The LOWORD of lParam is a BOOL that specifies whether the button is to be redrawn. A value of TRUE redraws the button; a value of FALSE does not redraw the button.

Return value

This message always returns zero.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)