CDockState::SaveState

Call this function to save the state information to the registry or .INI file.

void SaveState(
   LPCTSTR lpszProfileName 
);

Parameters

  • lpszProfileName
    Points to a null-teminated string that specifies the name of a section in the initialization file or a key in the Windows registry where state information is stored.

Remarks

The profile name is the section of the application's .INI file or the registry that contains the control bar's state information. SaveState also saves the current screen size. You can retrieve control bar information from the registry or .INI file with LoadState.

Requirements

Header: afxadv.h

See Also

Concepts

CDockState Class

CDockState Members

Hierarchy Chart

CDockState::LoadState

CDockState::GetVersion

CDockState::Clear

CFrameWnd::GetDockState

CFrameWnd::SetDockState