TB_SETSTATE

The TB_SETSTATE message sets the state for the specified button in a toolbar.

TB_SETSTATE

wParam = (WPARAM) idButton;

lParam = (LPARAM) MAKELONG(fState, 0);

Parameters

idButton

Command identifier of the button.

fState

State flags. This parameter can be a combination of the values listed in Toolbar Button States.

Return Values

Returns TRUE if successful or FALSE otherwise.