Windows Dev Center

Button_Enable macro

Enables or disables a button.

Syntax


BOOL Button_Enable(
   HWND hwndCtl,
   BOOL fEnable
);

Parameters

hwndCtl

Type: HWND

A handle to the button control.

fEnable

Type: BOOL

TRUE to enable the button, or FALSE to disable it.

Return value

Zero if the window was previously disabled; otherwise nonzero.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft