CToolBarCtrl::MapAccelerator

Maps an accelerator character to a toolbar button.

BOOL MapAccelerator(
   TCHAR chAccel,
   UINT* pIDBtn 
);

Parameters

  • chAccel
    Accelerator character to be mapped. This character is the same character that is underlined in the button's text.

  • pIDBtn
    A pointer to a UINT that receives the command identifier of the button that corresponds to the accelerator specified in chAccel.

Return Value

Nonzero if successful; otherwise zero.

Remarks

This member function implements the behavior of the Win32 message TB_MAPACCELERATOR, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

Other Resources

CToolBarCtrl Members