BM_SETSTYLE

An application sends a BM_SETSTYLE message to change the style of a button.

BM_SETSTYLE 
wParam =  (WPARAM) LOWORD(dwStyle); // style 
lParam =  MAKELPARAM(fRedraw, 0);   // redraw flag 
 

Parameters

dwStyle
Value of wParam. Specifies the new button style. This parameter can be a combination of button styles. For a table of button styles, see Button Styles.
fRedraw
Value of the low-order word of lParam. 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 Values

This message always returns zero.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in winuser.h.

See Also

Buttons Overview, Button Messages