Button_SetStyle macro (windowsx.h)

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

Syntax

LRESULT Button_SetStyle(
   HWND  hwndCtl,
   DWORD style,
   BOOL  fRedraw
);

Parameters

hwndCtl

Type: HWND

A handle to the button control.

style

Type: DWORD

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

fRedraw

Type: BOOL

TRUE to redraw the button; otherwise FALSE.

Return value

Type: LRESULT

The return value is always zero.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h