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 » Problem with setting __EDBS_DOCUMENT state for CExtDynamicControlBar object Collapse All
Subject Author Date
Darius Mikalauskas Nov 9, 2007 - 3:33 PM

Hello,

I try to follow SDI_DynamicBars example but possible missed something. I created non persistant empty dynamic bar and is can be displayed as floating, dockable. It can be hided and viewed. But when I try to set it to Tabbed state I receive Assertion failure in CExtDynamicControlBar::BarStateSet function:

        if( OnQueryChildHWND() == NULL )
        {
            ASSERT( FALSE );...

Thank you in advance

Darius

Technical Support Nov 10, 2007 - 12:56 PM

Please create a child window inside your dynamic control bar. Switching a dynamic control bar into document mode in the SDI application is implemented as follows

1) The control bar hides.

2) The child window changes its parent. Now the parent the tab page container window created as the main SDI view window.

3) In the tab page container, a tab item in the tab is registered for this child window .

4) The dynamic control bar is marked as switched into the document state.

As you can see from the above details, the dynamic control bar cannot be switched into document mode in an SDI application if a child window inside this control bar was not created.

Darius Mikalauskas Nov 10, 2007 - 12:56 AM

I solved the problem: there was no any dialog attached to the control bar.