TB_SETSTATE (Compact 2013)
3/28/2014
This message sets the state of the specified button in a toolbar, or the specified menu item in a central menu.
Syntax
TB_SETSTATE
wParam = (WPARAM) idButton;
lParam = (LPARAM) MAKELONG (fState, 0);
Parameters
- idButton
Command identifier of the button.
- fState
One or more button state values specifying the state of the toolbar button or the central menu item. For central menus, the menu item's state can only be set to TBSTATE_CHECKED, TBSTATE_ENABLED, or TBSTATE_HIDDEN. For information about the button state flags, see the fsState member of the TBBUTTON structure.
Return Value
TRUE indicates success. FALSE indicates failure.
Requirements
Header |
commctrl.h |