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 » Aligning Toolbar sideby Collapse All
Subject Author Date
anil vyas Sep 3, 2007 - 3:53 AM

hi,
I have 10 toolbars.i keep one toolbar shown when application runs.I want all toolbar to align and arrange properly one after other when it is shown.I am not able to do in my project.What may be problem.I am using same code of "Aligning Toolbar sideby"
Waiting for your early reply.

Technical Support Sep 3, 2007 - 1:18 PM

Here is the code that docks a m_wndToolBar2 toolbar after m_wndToolBar1 in the same row.

CRect wrAlredyDockedBar;
m_wndToolBar1.GetWindowRect( &wrAlredyDockedBar );
wrAlredyDockedBar.OffsetRect( 1, 0 );
DockControlBar(&m_wndToolBar2,AFX_IDW_DOCKBAR_TOP,&wrAlredyDockedBar);
RecalcLayout();

anil vyas Sep 10, 2007 - 4:40 AM

hi,
Thanks for replying but i am not able to align toolbar.Only first two toolbar align properly and others align in new row.suggest good method to do it.
Another point is i also want my some toolbar to dock to secified CRect on clicking a toolbar button.I did it but it does not move to proper rectangle after event occur.