![]() |
Positioning a CXTPToolBar next to another one |
Post Reply
|
| Author | |
JamesL
Newbie
Joined: 26 February 2006 Location: UK Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Positioning a CXTPToolBar next to another onePosted: 23 July 2007 at 7:09pm |
|
Hi I am trying to position 2 toolbars horizontally next to each other when my app starts.
CXTPCommandBars* pCommandBars = GetCommandBars();
// Create Standard ToolBar
CXTPToolBar* pToolBar = (CXTPToolBar*) pCommandBars->Add(_T( "Standard"), xtpBarTop); // Create Rules ToolBarCXTPToolBar* pToolBarRules = (CXTPToolBar*) pCommandBars->Add(_T("Rules"), xtpBarTop);
I have tried pToolBarRules->MoveWindow(...
and pToolBarRules->SetWindowPos(...
but they had little effect
thanks
James
|
|
![]() |
|
JamesL
Newbie
Joined: 26 February 2006 Location: UK Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 July 2007 at 7:36pm |
|
Ok
I found the answer .... so simple I just got lost in the docs and missed it.
DockRightOf(pToolBarRules,pToolBar); |
|
![]() |
|
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 |