Share via


CMouseManager::SaveState

Writes the state of the CMouseManager Class to the registry.

BOOL SaveState(
   LPCTSTR lpszProfileName = NULL
);

Parameters

  • [in] lpszProfileName
    A path of a registry key.

Return Value

Nonzero if successful; otherwise 0.

Remarks

The state information written to the registry includes all registered views, view identifiers, and the associated commands. If the parameter lpszProfileName is NULL, this function writes the CMouseManager data to the default registry location controlled by the CWinAppEx Class.

In most cases, you do not have to call this function directly. It is called as a part of the workspace serialization process. For more information about the workspace serialization process, see CWinAppEx::SaveState.

Requirements

Header: afxmousemanager.h

See Also

Reference

CMouseManager Class

Hierarchy Chart

CWinAppEx Class

CWinAppEx::SaveState