Help Center

CToolbar.MapAcceleratormethod

Determines the ID of the button that corresponds to the specified accelerator character.

WindowsmethodCToolbar.incdocumented

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

NameDescription
hToolbarHandle to the toolbar control.
chAccelThe accelerator character.
IDBtnPointer to a DWORD. On return, if successful, this parameter will hold the id of the button that has chAccel as its accelerator character.
IDBtnA 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