Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 General Discussion » CExtControlBar Problem Collapse All
Subject Author Date
anil vyas Aug 22, 2007 - 7:06 AM

Hi,
I want to save controls ViewWise.What should i do to save it.
Waiting for your early reply.

Technical Support Aug 22, 2007 - 12:44 PM

The state of Prof-UIS control bars can be saved/loaded to/from the system registry using the CExtControlBar::ProfileBarStateSave() and CExtControlBar::ProfileBarStateLoad() methods. The state of bars can be also serialized with MFC archives using the CExtControlBar::ProfileBarStateSerialize() method. So, you can serialize the control bar’s state with an archive based on a memory file. This means the control bar’s state data can be part of any external compound document.

anil vyas Sep 3, 2007 - 3:03 AM

Hi,
Thanks for replying.I am using CExtControlBar::ProfileBarStateLoad(); and CExtControlBar::ProfileBarStateSave() in OnMDIActivate() function of CChildFrame.
But it crashes How to save it View Wise?
Waiting for your early reply.

Technical Support Sep 3, 2007 - 8:35 AM

The OnMdiActivate() method is not a good place for loading the control bars’ state. You should post some (WM_USER+123) message from it, handle it and load the controls’ bar state there.