Share via


BM_SETSTYLE (Compact 2013)

3/28/2014

This message is sent by an application to change the style of a button.

Syntax

BM_SETSTYLE wParam = (WPARAM) LOWORD (dwStyle),
    lParam = MAKELPARAM (fRedraw, 0)

Parameters

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

Remarks

The following button styles are not supported:

  • BS_PUSHBOX
  • BS_USERBUTTON

Requirements

Header

winuser.h

See Also

Reference

Button Messages