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 » Size of a CExtToolControlBar Collapse All
Subject Author Date
Guido Jaeger Feb 10, 2011 - 10:44 AM



i am Beginner with Visual Studio, finished Converting a Project from VC6 to VC2010

I Exchange the CToolbat against the

CExtToolControlBar and the Style of the Application to


Now when i Start the Application the in the new Design but the Rest of the

Line until the full Wide of the Screen is still grey. Is it possibel to resize the

ToolControlbar automatic to full Wide ?


Guido Jaeger Feb 12, 2011 - 3:37 AM



it is possible to change the Original Class so that every CExtToolbar occupy the widest Space ?


In my Software there is a Mix of CToolbar and CExtToolbar. When i replace

EnableDocking(CBRS_ALIGN_ANY) against

if(   ! CExtControlBar::FrameEnableDocking( this ) )
        ASSERT( FALSE );
        return -1;


the Software crashed.



Technical Support Feb 14, 2011 - 12:34 AM

The CExtToolControlBar windows cannot be mixed with CToolBar windows. Our toolbar is much more advanced than MFC’s. It’s not possible to support features like persistent position affixment when CToolBar windows are docked near CExtToolControlBar windows. Please switch to the CExtToolControlBar class or your CExtToolControlBar-derived class which allows a toolbar to take up the widest available space.
Please note the CExtToolControlBar windows can be created as non re-dockable. Such windows also occupy widest available space. Just not invoke EnableDocking() for CExtToolControlBar windows.

Technical Support Feb 11, 2011 - 12:37 AM

If you created a non-redockable toolbar, then it automatically occupies the entire column/row. The drag-n-drop-able bars can also occupy the entire column/row. The menu bar is such kind of toolbar. You can create a CExtToolControlBar-derived class and invoke the following code in its constructor:

m_bHelperTempFullRowMode = false;
This toolbar will occupy the widest available space.