Button_SetStyle macro

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

The return value is always zero.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Windowsx.h

 

 

Show: