Share via


CKeyboardManager::UpdateAccelTable

Updates a shortcut key table with a new shortcut key table.

BOOL UpdateAccelTable(
   CMultiDocTemplate* pTemplate,
   LPACCEL lpAccel,
   int nSize,
   CFrameWnd* pDefaultFrame = NULL
);
BOOL UpdateAccelTable(
   CMultiDocTemplate* pTemplate,
   HACCEL hAccelNew,
   CFrameWnd* pDefaultFrame = NULL
);

Parameters

  • [in] pTemplate
    A pointer to a document template.

  • [in] lpAccel
    A pointer to the new shortcut key.

  • [in] nSize
    The size of the new shortcut table.

  • [in] pDefaultFrame
    A pointer to the default frame window.

  • [in] hAccelNew
    A handle to the new shortcut table.

Return Value

Nonzero if the method is successful; otherwise 0.

Remarks

Use this function to replace the existing shortcut table with new shortcut keys for several frame window objects. The function receives a document template as a parameter to obtain access to all frame window objects connected to the given document template.

Requirements

Header: afxkeyboardmanager.h

See Also

Reference

CKeyboardManager Class

Hierarchy Chart