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 General Discussion » Problem In CControlBar Collapse All
Subject Author Date
anil vyas Jul 30, 2007 - 12:45 AM

I have a class with name CMyControl derived from CControlBar.I want to Create and Dock this controlbar window in my MainFrame window.
But it gives Aseertion fail when i execute.
So how to do it?or any other way to solve it.
Waiting for your early reply

anil vyas Jul 30, 2007 - 7:57 AM

Thanks for replying.
I am using a class derived from CControlBar.
DockControlBarEx(&m_FileBar,AFX_IDW_DOCKBAR_LEFT ,1,150);

I have disabled my CExtControlBar::ToolbarStateLoad()
SerailizeState() also

but my application returns it does not give any output.

If i remove DockControlBarEx then it crashes.

Technical Support Jul 30, 2007 - 12:14 PM

We used to support MFC control bars docking into Prof-UIS control bars areas many versions ago. But now this support is discontinued. Please switch to using CExtPanelControlBar control bars with CExtResizableDialog windows inside.

Suhai Gyorgy Jul 30, 2007 - 1:39 AM

There’s not enough information in your post to find out what the problem can be. If you use CControlBar and not CExtControlBar, it might not even be Prof-UIS related problem.

If you really use CExtControlBar and crash comes from inside ProfileBarStateSerialize function, then there might be no problem with your controlbar creation and docking code. The above function can cause a crash because the saved state of the control bars fails to load for the first time you run the application with a new controlbar. But that only happens for the first time, and it doesn’t happen at all if the registry is clean of the saved state of controlbars.

If none of this helps, please show us your code related to the creation and docking of the controlbar and also the call stack when the assertion occurs.