Delen via


CKeyboardManager::ShowAllAccelerators

Shows all the shortcut keys associated with menu commands.

static void ShowAllAccelerators(
   BOOL bShowAll = TRUE,
   LPCTSTR lpszDelimiter = _afxDefaultAcceleratorDelimiter
);

Parameters

  • [in] bShowAll
    If true, all the shortcut keys will be displayed. If false, only the first shortcut key will be displayed.

  • [in] lpszDelimiter
    A string to insert between shortcut keys. This delimiter has no effect if only one shortcut key is displayed.

Remarks

By default, if a command has more than one shortcut key associated with it, only the first shortcut key will be shown. This function enables you to list all the shortcut keys associated with all commands.

The shortcut keys will be listed next to the command in the menu bar. If all the shortcut keys are displayed, the string provided by lpszDelimiter will separate individual shortcut keys.

Requirements

Header: afxkeyboardmanager.h

See Also

Reference

CKeyboardManager Class

Hierarchy Chart