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 » Issue with ProfileBarStateLoad Collapse All
Subject Author Date
MUKESH GUPTA Jun 30, 2011 - 1:43 AM


I saving the positioning of few CExtControlBar derived controls and CExtToolControlBar derived toolbar under CMainFrame::DestroyWindow using CExtControlBar::ProfileBarStateSave and laoding the same under CSaIsMainFrame::OnCreate using CExtControlBar::ProfileBarStateLoad.

In the above mentioned case, some of the toolbars and controlbars are disappearing from the application, every time I close and reopen the application. Please suggest, how can I debug the same to understand why the toolbars are disappearing from the application.

Is it possible to interpret the values being saved under the registry to find out the issue.

Thanks in advance.

With regards,

MUKESH GUPTA Jun 30, 2011 - 3:15 PM

The behavior is something like the following -
The first time I open the application, all the control bars are visible since the position is not loaded from a saved state. The second time I open the application, some of the control bars disappear. The third time I open the application, a few more control bars disappear and by the fourth time, all the control bars disappear from the application.
The order in which the control bars disappear is almost the same for each set of executions. I have around 5 toolbars at the top and one controlbar each in left, bottom and right side of the screen.

Please suggest.

Technical Support Jul 4, 2011 - 8:23 AM

Did you checked dialog control identifiers of all the control bars? They must be unique. Please take a look at the Create() method invocation of each control bar in your app. All the invocations must use unique bar identifiers.

MUKESH GUPTA Jul 18, 2011 - 6:09 AM

Thanks. I was able to resolve the issue by providing a unique identifier to each control bar.

Technical Support Jun 30, 2011 - 6:50 AM

The registry state data is a binary data stream containing state of all the control bars and additional state data describing mutual bar positions. It cannot be viewed.
The disappeared bar problem typically occurs if not all of your control bars have unique dialog control identifiers. You should create all the bars with true unique identifiers. This is very important requirement. If all of them have unique identifiers, then we need additional details:
1) Whether the same set of control bars constantly disappear?
2) Whether disappeared control bars were placed into some specific locations which make them disappear?
3) Whether your app performs any programmatic actions to change control bar locations for disappeared bars?