CBasePane::SaveState

Saves the pane's state to the registry.

virtual BOOL SaveState(
   LPCTSTR lpszProfileName=NULL,
   int nIndex=-1,
   UINT uiID=(UINT)-1
);

Parameters

  • [in] lpszProfileName
    Profile name.

  • [in] nIndex
    Profile index.

  • [in] uiID
    Pane ID.

Return Value

TRUE if the state was saved successfully; otherwise FALSE.

Remarks

The framework calls this method when it saves the pane's state to the registry. Override SaveState in a derived class to store additional information.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart

CBasePane::LoadState