CToolBarCtrl::MapAccelerator
Maps an accelerator character to a toolbar button.
BOOL MapAccelerator(
TCHAR chAccel,
UINT* pIDBtn
);
Параметры
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.
Возвращаемое значение
Nonzero if successful; otherwise zero.
Заметки
This member function implements the behavior of the Win32 message TB_MAPACCELERATOR, as described in the Windows SDK.
Требования
Header: afxcmn.h