Button_SetStyle macro (windowsx.h)

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

Syntax

void Button_SetStyle(
   hwndCtl,
   style,
   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

None

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