Condividi tramite


CMFCToolBar::SaveState

Saves the state information for the toolbar in the Windows registry.

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

Parameters

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

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

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

Return Value

Nonzero if the method succeeds; otherwise 0.

Remarks

The framework calls this method when it saves the application state to the registry. For more information, see CWinAppEx::SaveState.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CWinAppEx::SaveState