TB_ENABLEBUTTON message

Enables or disables the specified button in a toolbar.

Parameters

wParam

Command identifier of the button to enable or disable.

lParam

The LOWORD is a BOOL that indicates whether to enable or disable the specified button. If TRUE, the button is enabled. If FALSE, the button is disabled.

Return value

Returns TRUE if successful, or FALSE otherwise.

Remarks

When a button has been enabled, it can be pressed and checked.

Requirements

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