Udostępnij za pośrednictwem


CMFCToolBar::RemoveStateFromRegistry

Deletes the state information for the toolbar from the Windows registry.

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

Parameters

  • [in] lpszProfileName
    Specifies the registry key where the state information is located.

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

  • [in] uiID
    The resource ID of the toolbar. If this parameter is -1, this method uses the CWnd::GetDlgCtrlID method to retrieve the resource ID.

Return Value

Nonzero if the method succeeds; otherwise 0.

Remarks

The framework calls this method when it deletes a user-defined toolbar.

Override this method if you store additional state information in the Windows registry.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CWnd::GetDlgCtrlID