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 causes crash when moved Collapse All
Subject Author Date
Takis Takoglou Nov 11, 2009 - 5:01 AM

Good day,


I have a CExtControlBar which is a "container" for a CExtWRB< BarDialog > TabBar.

I have made all th adjustments for the CExtControlBar to be dockable:



CExtControlBar::FrameEnableDocking(this);
this->m_wndResizableBarDlg.EnableDocking(CBRS_ALIGN_ANY);
this->m_wndResizableBarDlg.DockControlBar( AFX_IDW_DOCKBAR_LEFT, 1, this, false );

My program starts and the it is correctly docked in the left.

When i try to move the controlbar the program crashes.

The line which causes this is in file: ExtControlBar.cpp  in function CControlBar * CExtControlBar::_GetNextControlBarInRow( )

the ASSERT( nPos >= 0 ); fails becuse its value is -1.


Thanx in advance for any suggestions on the matter.

Technical Support Nov 11, 2009 - 11:47 AM

The control bar layout related algorithms are compound and mutually depend on each other: in-frame space allocation, row/column layout, etc. We need a test project reproducing this assertion to debug the problem.