Saves the state of the CMFCMenuBar object to the Windows registry.
virtual BOOL SaveState ( LPCTSTR lpszProfileName = NULL, int nIndex = -1, UINT uiID = (UINT)-1 );
A string that contains the path of a Windows registry key.
The control ID for the menu bar.
A reserved value.
TRUE if successful; otherwise FALSE;
Usually, your application does not call SaveState. The framework calls this method when the workspace is serialized. For more information, see CWinAppEx::SaveState.
The saved information includes the menu items, the dock state, and the position of the menu bar.