Compartilhar via


CPane::LoadState

Loads the state of the pane 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 that is saved by CPane::SaveState.

When you override this method, also call the base method, and return FALSE if the base method returns FALSE.

Requirements

Header: afxpane.h

See Also

Reference

CPane Class

Hierarchy Chart