Share via


CBasePane::LoadState

Loads the pane's state from the registry.

virtual BOOL LoadState(
   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 pane state was loaded successfully; otherwise FALSE.

Remarks

The framework calls this method to load the pane state from the registry. Override it in a derived class to load additional information saved by CBasePane::SaveState.

Requirements

Header: afxbasepane.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CBasePane Class

CBasePane::SaveState