Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to retrieve current pane size.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to retrieve current pane size.

 Post Reply Post Reply
Author
Message
steph View Drop Down
Newbie
Newbie
Avatar

Joined: 07 June 2011
Location: Canada
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote steph Quote  Post ReplyReply Direct Link To This Post Topic: How to retrieve current pane size.
    Posted: 16 August 2011 at 2:43pm
What would be the best way to retrieve the pane size.

I need to get the height and width of a DockingPane

thanks in advance.
steph
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 441
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2011 at 10:24pm
I haven't tried it myself, but how about something like:

Crect rcPane = CXTPDockingPaneManager::FindPane(ID_PANE)->GetPaneWindowRect();

Of course, you'd use an instance variable instead of "CXTPDockingPaneManager".
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2011 at 8:49am
You can check height and width of window that is attached to this pane.
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.156 seconds.