TB_PRESSBUTTON message

Presses or releases the specified button in a toolbar.

Parameters

wParam

Command identifier of the button to press or release.

lParam

The LOWORD is a BOOL that indicates whether to press or release the specified button. If TRUE, the button is pressed. If FALSE, the button is released.

The HIWORD must be zero.

Return value

Returns TRUE if successful, or FALSE otherwise.

Requirements

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