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 » CExtToolControlBar docking next to each other Collapse All
Subject Author Date
Stephan Finkler Jun 3, 2005 - 7:15 AM

Hi,
how can I position 2 toolbars next to each other(no gap between)?

I do (see AviFrames sample):

        CRect wrAlredyDockedBar;
        m_wndToolBarZoom.GetWindowRect( &wrAlredyDockedBar );
        wrAlredyDockedBar.OffsetRect( 1, 0 );
        DockControlBar( &m_wndToolBarSeek, AFX_IDW_DOCKBAR_TOP, &wrAlredyDockedBar );
        RecalcLayout();

This works fine if the toolbars are not behind each other. If they are behind each other and there is a gap between, there is no reposition. The gap is still there. How can I set them close to each other?

Thanks for any advice?

Technical Support Jun 3, 2005 - 9:22 AM

First of all, please tell us whether you are trying to dock toolbars initially or they are already docked and you are trying to redock them at run time. Second, please make ensure that you make a call of the RecalcLayout() method before you get a position of the first bar. Third, please provide us with a larger code snippet from your project. It should cover entire docking API invocations for both toolbars.