Toolbar custom position |
Post Reply |
Author | |
Red Devil
Newbie Joined: 15 March 2006 Location: Zimbabwe Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 17 March 2006 at 7:51am |
Init toolbar allows standart positions top, left, rigth, bottom, etc. I desire place one toolbar in right corner, and another toolbar in left corner. Screenshot is show how i desire place the toolbars.
CToolBarInfo may help me ? I not find info about this class in help. |
|
Red Devil
Newbie Joined: 15 March 2006 Location: Zimbabwe Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I solve a problem. I do :
OnCreate() { ... RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, AFX_IDW_PANE_FIRST); CXTPWindowRect rect(pLBar); CRect rcRect; GetClientRect(rcRect); if (IsVerticalPosition(pLeftBar->GetPosition())) rect.OffsetRect(0, rect.Height()); else rect.OffsetRect(rect.Width() + rcRect.right, 0); GetCommandBars()->DockCommandBar(pRightBar, rect, pLeftBar->GetDockBar()); ... } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |