Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Where will I dock?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Where will I dock?

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Where will I dock?
    Posted: 02 February 2010 at 3:23pm
When a pane is floating, I need to know where I would dock if the user double-clicked the pane to dock it. How can I get this information?
 
I have found that if I call GetPaneDirection that the value returned is 4 (not one of the values in XTPDockingPaneDirection enum). I see that is because I am floating. The docking pane's IsFloating returns TRUE, as expected.
 
When I step through the GetPaneDirection code it is fairly complex so I want to avoid a hack and any assumptions that would go with it. This was pretty easy to do with MFC so I assume it is easy to do with CJ but I just have not found the method or call path to returne me the information. But it has to be available otherwise when I double-click the pane, it would not know where to go!
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.125 seconds.