Partager via


CKeyboardManager::FindDefaultAccelerator

Retrieves the default shortcut key for the specified command and window.

static BOOL FindDefaultAccelerator(
   UINT uiCmd,
   CString& str,
   CFrameWnd* pWndFrame,
   BOOL bIsDefaultFrame 
);

Parameters

  • [in] uiCmd
    The command ID.

  • [out] str
    A reference to a CString object.

  • [in] pWndFrame
    A pointer to a frame window.

  • [in] bIsDefaultFrame
    Specifies whether the frame window is the default frame window.

Return Value

Nonzero if the shortcut is found; otherwise 0.

Remarks

This method looks up the command specified by uiCmd and retrieves the default shortcut key. Then the method takes the string associated with this shortcut key and writes the value to the str parameter.

Requirements

Header: afxkeyboardmanager.h

See Also

Reference

CKeyboardManager Class

Hierarchy Chart