CToolbar.GetStatemethod
Retrieves information about the state of the specified button in a toolbar, such as whether it is enabled, pressed, or checked.
Syntax
FUNCTION GetState (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
idButton | Command identifier of the button for which to retrieve information. |
Description
Retrieves information about the state of the specified button in a toolbar, such as whether it is enabled, pressed, or checked.
Remarks
Returns the button state information if successful, or -1 otherwise. The button state information can be a combination of the values listed in Toolbar Button States.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:743
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class