CToolbar.MapAcceleratormethod
Determines the ID of the button that corresponds to the specified accelerator character.
Syntax
FUNCTION MapAccelerator (BYVAL hToolbar AS HWND, BYVAL chAccel AS DWORD, BYVAL pIDBtn AS DWORD PTR) AS BOOLEAN
FUNCTION MapAccelerator (BYVAL hToolbar AS HWND, BYVAL chAccel AS DWORD, BYREF IDBtn AS DWORD) AS BOOLEAN
FUNCTION MapAccelerator (BYVAL hToolbar AS HWND, BYVAL chAccel AS DWORD) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
chAccel | The accelerator character. | |
IDBtn | Pointer to a DWORD. On return, if successful, this parameter will hold the id of the button that has chAccel as its accelerator character. | |
IDBtn | A DWORD. On return, if successful, this parameter will hold the id of the button that has chAccel as its accelerator character. |
Return value
Returns a nonzero value if one of the buttons has chAccel as its accelerator character, or zero otherwise.
Description
Determines the ID of the button that corresponds to the specified accelerator character.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:923
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class