Share via


CKeyboardManager::LoadState

Loads the shortcut key tables from the Windows registry.

BOOL LoadState(
   LPCTSTR lpszProfileName = NULL,
   CFrameWnd* pDefaultFrame = NULL
);

Parameters

  • [in] lpszProfileName
    The registry path where CKeyboardManager data is saved.

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

Return Value

Nonzero if the state was loaded successfully or 0 otherwise.

Remarks

If the lpszProfileName parameter is NULL, this method checks the default registry ___location for CKeyboardManager data. The default registry ___location is specified by the CWinAppEx Class. The data must be previously written with the method CKeyboardManager::SaveState.

If you do not specify a default window, the main frame window of your application will be used.

Requirements

Header: afxkeyboardmanager.h

See Also

Reference

CKeyboardManager Class

Hierarchy Chart

CWinAppEx Class

CKeyboardManager::SaveState