CToolbar.SetStatemethod
Sets the state for the specified button in a toolbar.
Syntax
FUNCTION SetState (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG, BYVAL fState AS SHORT) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
idButton | Command identifier of the button. | |
fState | A is a combination of values listed in Toolbar Button States. |
Return value
Returns TRUE if successful, or FALSE otherwise.
Description
Sets the state for the specified button in a toolbar.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:1258
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class