Print Page | Close Window

Placement of panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13653
Printed Date: 13 September 2025 at 6:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Placement of panes
Posted By: znakeeye
Subject: Placement of panes
Date 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/



Replies:
Posted By: znakeeye
Date 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/


Posted By: Oleg
Date Posted: 23 March 2009 at 1:52am
Hi,
 
Call RepositionBars(..CWnd::reposQuery ) to get size of client part.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net