Platform SDK: Windows User Interface

BM_SETSTYLE

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

To send this message, call the SendMessage function with the following parameters.

SendMessage( 
  (HWND) hWnd,              // handle to destination window 
  BM_SETSTYLE,              // message to send
  (WPARAM) wParam,          // button style
  (LPARAM) lParam          // redraw state
);

Parameters

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

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.

See Also

Buttons Overview, Button Messages, LOWORD