Partager via


CContextMenuManager::LoadState

Loads information associated with the CContextMenuManager Class from the Windows registry.

virtual BOOL LoadState(
   LPCTSTR lpszProfileName = NULL
);

Parameters

  • [in] lpszProfileName
    A string that contains the relative path of a registry key.

Return Value

Nonzero if the method is successful; otherwise 0.

Remarks

The lpszProfileName parameter is not the absolute path for a registry entry. It is a relative path that is added to the end of the default registry key for your application. To get or set the default registry key, use the methods CWinAppEx::GetRegistryBase and CWinAppEx::SetRegistryBase respectively.

Use the method CContextMenuManager::SaveState to save the shortcut menus to the registry.

Requirements

Header: afxcontextmenumanager.h

See Also

Reference

CContextMenuManager Class

Hierarchy Chart

CContextMenuManager::SaveState