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 » How could I Dock ControlBar into others and get the right size ?? Collapse All
Subject Author Date
Jia Hong Li Mar 21, 2007 - 12:11 AM

Wrong style: http://picasaweb.google.com.tw/ooy.yoo/Others/photo#5044249547165901906
What I need in initial time: http://picasaweb.google.com.tw/ooy.yoo/Others/photo#5044249551460869218

My CtrlBar State:
///////////////////////////////////////////////////////////////////////////////////
Bar1.DockControlBarInnerOuter(    AFX_IDW_DOCKBAR_LEFT, true );
Bar2.SetInitDesiredSizeVertical( CSize( 200, 100 ) );
Bar2.DockControlBarLTRB( &m_wndResizableBarTree, AFX_IDW_DOCKBAR_BOTTOM );
///////////////////////////////////////////////////////////////////////////////////
It doesnt work.

What I lose ?

Suhai Gyorgy Mar 21, 2007 - 2:55 AM

From the picture it seems you’d like the 2 bars to share the vertical space of around 50-50%. For this you can use the other format of DockControlBarLTRB method, which receives the nPercentToOccupy value as first parameter. So your last line of code should look like:
Bar2.DockControlBarLTRB( 50, &m_wndResizableBarTree, AFX_IDW_DOCKBAR_BOTTOM );