Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to find docked pane location?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to find docked pane location?

 Post Reply Post Reply
Author
Message
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: How to find docked pane location?
    Posted: 12 May 2004 at 6:36am

In my application I am adding panes dynamically but if there is already a pane docked at the bottom of the frame then I would like to add the new pane as a tab to this one, otherwise just dock the pane to the bottom as normal.

My problem is that although I can enumerate the pane list and find all panes that are docked, I can't identify which side they are docked to.  I know I can get the WindowRect from the pane and probably work it out from this but surely there's an easier way?

Back to Top
spiderM9 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 October 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote spiderM9 Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2004 at 4:58pm
Ditto this problem, I was going to submit the same question.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2004 at 1:08am

add public memeber (in next version we will add it too)

XTPDockingPaneDirection CXTPDockingPaneManager::GetPaneDirection(CXTPDockingPaneBase * pPane)
{
 ASSERT(m_pLayout);
 return m_pLayout->_GetPaneDirection(pPane);
}

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.