Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Placement of panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Placement of panes

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Placement of panes
    Posted: 11 March 2009 at 6:18pm

In your samples, when you create your panes you always provide constant width/height:

CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(
IDR_PANE1, CRect(0, 0,200, 120), xtpPaneDockBottom);
 
I want to make an exact placement of all panes. This should be possible by calculating the main window's client rectangle and subtract from it. However, in my Ribbon SDI application I cannot get the correct rectangle.
 
What would be the proper way to get the exact size of the area where the attached panes are sized?
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2009 at 11:02am
Can't be done? My client-pane is hidden, so I can't get its rectangle.
 
Ribbon
---------
[ AREA where panes should be placed!  ]
[                                                              ]
 
Width and height = ?
PokerMemento - http://www.pokermemento.com/
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: 23 March 2009 at 1:52am
Hi,
 
Call RepositionBars(..CWnd::reposQuery ) to get size of client part.
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.203 seconds.