CContextMenuManager::SaveState
Saves information associated with the CContextMenuManager Class to the Windows registry.
virtual BOOL SaveState(
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::LoadState to load the shortcut menus from the registry.
Requirements
Header: afxcontextmenumanager.h