Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Reset layout after ProfileBarStateSave Collapse All
Subject Author Date
MUKESH GUPTA Jul 22, 2011 - 5:32 AM


Is there any API available to delete the data saved to the registry after making call to ProfileBarStateSave.
If not, how can I alternatively implement resetting of the layout of the window?

Thanks in advance.

Technical Support Jul 22, 2011 - 1:15 PM

Resetting the control bar layout can be performed through:
1) Invoking the code which docks all the bars initially.
2) Loading some initial state data from a specific registry location or an MFC archive.
3) Deleting the relevant registry data and restarting the application.
There is no API for deleting the registry state. But it’s not difficult to find out which registry key to delete:

CExtSafeString productsection2regkeypath_for_CExtControlBar(
    __EXT_MFC_SAFE_LPCTSTR sProfileName,
    __EXT_MFC_SAFE_LPCTSTR sSectionNameCompany, // under HKEY_CURRENT_USER\Software
    __EXT_MFC_SAFE_LPCTSTR sSectionNameProduct // under HKEY_CURRENT_USER\Software\%sSectionNameCompany%
    return CExtCmdManager::GetSubSystemRegKeyPath(