Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Positioning a CXTPToolBar next to another one
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Positioning a CXTPToolBar next to another one

 Post Reply Post Reply
Author
Message
JamesL View Drop Down
Newbie
Newbie


Joined: 26 February 2006
Location: UK
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesL Quote  Post ReplyReply Direct Link To This Post Topic: Positioning a CXTPToolBar next to another one
    Posted: 23 July 2007 at 7:09pm

Hi

I am trying to position 2 toolbars horizontally next to each other when my app starts.
 
here is a code fragment:

CXTPCommandBars* pCommandBars = GetCommandBars();

// Create Standard ToolBar

CXTPToolBar* pToolBar = (CXTPToolBar*)  pCommandBars->Add(_T("Standard"), xtpBarTop);

// Create Rules ToolBar
CXTPToolBar* pToolBarRules = (CXTPToolBar*) pCommandBars->Add(_T("Rules"), xtpBarTop);
 
The 2nd toolbar gets created underneath the 1st.
so my question is how can I reposition the 2nd toolbar to the right of the 1st.
 
I have tried pToolBarRules->MoveWindow(...
and pToolBarRules->SetWindowPos(...
but they had little effect
 
thanks
James
Back to Top
JamesL View Drop Down
Newbie
Newbie


Joined: 26 February 2006
Location: UK
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesL Quote  Post ReplyReply Direct Link To This Post 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);

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.