![]() |
Placement of panes |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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/
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Call RepositionBars(..CWnd::reposQuery ) to get size of client part.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |