CContextMenuManager::LoadState

从Windows注册表加载信息与 CContextMenuManager选件类

virtual BOOL LoadState(
   LPCTSTR lpszProfileName = NULL
);

参数

  • [in] lpszProfileName
    包含注册表项的相对路径的字符串。

返回值

非零,则方法成功;否则为0。

备注

lpszProfileName 参数不是注册表项的绝对路径。 它已添加到默认注册表项的结束应用程序的相对路径。 获取或设置默认注册表项,请使用方法单个 CWinAppEx::GetRegistryBaseCWinAppEx::SetRegistryBase

使用方法 CContextMenuManager::SaveState 保存快捷菜单添加到注册表中。

要求

标头: afxcontextmenumanager.h

请参见

参考

CContextMenuManager选件类

层次结构图

CContextMenuManager::SaveState