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 Tech Support » Save States of Tabbed Control Bars Collapse All
Subject Author Date
Chun Pong Lau Jul 21, 2008 - 11:49 PM

Dear support team,


When I CExtDynamicBarSite::StateSave() of a layout with tabbed control bars and then CExtDynamicBarSite::StateLoad() will fail.


When I do this after removing all tabs, it will be ok.


Is it possible to save the states of the tabbed control bars as well?


Thanks a lot.


Regards,


Chun Pong

Technical Support Jul 23, 2008 - 11:48 AM

The state loading algorithm requires the exact match between state data and control bars created inside the main frame window. If you are using the same persistent number of bars, the state loading will be performed successfully. You may need to remove the state data from the registry manually during development process when the number of resizable bars changes or when dialog control identifiers of some bars change. If you need a dynamic number of resizable control bars at run-time, you should use dynamic resizable bars demonstrated in the SDI_DynamicBars and MDI_DynamicBars samples.