CToolbar.SetCmdIdmethod
Sets the command identifier of a toolbar button.
Syntax
FUNCTION SetCmdId (BYVAL hToolbar AS HWND, BYVAL index AS SHORT, BYVAL cmdid AS SHORT) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
index | Zero-based index of the button whose command identifier is to be set. | |
cmdid | Command identifier. |
Return value
Returns TRUE if successful, or FALSE otherwise.
Description
Sets the command identifier of a toolbar button.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:1072
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class