Partager via


CMFCToolBar::LoadState

Loads the toolbar state information from the Windows registry.

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

Parameters

  • [in] lpszProfileName
    Specifies the relative path of the Windows registry key.

  • [in] nIndex
    Specifies the control ID of the toolbar.

  • [in] uiID
    Specifies the resource ID of the toolbar.

Return Value

Nonzero if the method succeeds; otherwise 0.

Remarks

The framework calls this method as a part of the initialization process of the application. For more information, see CWinAppEx::LoadState.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CWinAppEx::LoadState