共用方式為


CKeyboardManager::IsShowAllAccelerators

Indicates whether menus show all the shortcut keys associated with menu commands or only the default shortcut keys.

static BOOL IsShowAllAccelerators();

Return Value

Nonzero if the application lists all the shortcut keys for menu commands; 0 if the application displays only default shortcut keys.

Remarks

The application lists the shortcut keys for menu commands in the menu bar. Use the function CKeyboardManager::ShowAllAccelerators to control whether the application lists all the shortcut keys or just the default shortcut keys.

Requirements

Header: afxkeyboardmanager.h

See Also

Reference

CKeyboardManager Class

Hierarchy Chart

CKeyboardManager::ShowAllAccelerators