Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

The state persistence is usually implemented in your CMainFrame's OnCreate() and DestroyWindow() methods.

To load bars' state:

CExtControlBar::ProfileBarStateLoad(
this,// some kind of CFrameWnd
pApp->m_pszRegistryKey, // application registry key (usually company name)
pApp->m_pszProfileName, // application profile name (usually product name) pApp->m_pszProfileName // Prof-UIS profile name
);

To save bars' state:

CExtControlBar::ProfileBarStateSave(
this, // some kind of CFrameWnd
pApp->m_pszRegistryKey, // application registry key (usually company name) pApp->m_pszProfileName, // application profile name (usually product name) pApp->m_pszProfileName // Prof-UIS profile name
);