CToolbar.GetButtonmethod
Retrieves information about the specified button in a toolbar.
Syntax
FUNCTION GetButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG, BYVAL ptbb AS TBBUTTON PTR) AS BOOLEAN
FUNCTION GetButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG, BYREF tbb AS TBBUTTON) AS BOOLEAN
FUNCTION GetButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG) AS TBBUTTON
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
nButton | Zero-based index of the button for which to retrieve information. | |
ptbb | Pointer to the TBBUTTON structure that receives the button information. | |
tbb | A TBBUTTON structure that receives the button information. |
Return value
Returns TRUE if successful, or FALSE otherwise.
Description
Retrieves information about the specified button in a toolbar.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:445
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class