Lock pane sizing? |
Post Reply |
Author | |
guywmustang
Newbie Joined: 17 April 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 15 June 2006 at 7:31pm |
Is there a way currently to lock pane sizing? I don't want the panes to be freely sizeable.
Thanks! Keep up the good work
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
m_paneManager.LockSplitters();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
guywmustang
Newbie Joined: 17 April 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
That doesn't work when I have a floating pane with other panes docked within it. You can size the floating window by draggingthe outside borders of it.
Any way to lock it in this case?
|
|
guywmustang
Newbie Joined: 17 April 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
<bump>
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi.
Solution 1:
1. Run DockingContainers - it show how to use custom contaiers.
2. For CDockingPaneMiniWnd (it is container for Floating window) add
BEGIN_MESSAGE_MAP(CDockingPaneMiniWnd, CXTPDockingPaneMiniWnd)
... ON_WM_NCHITTEST_EX()
END_MESSAGE_MAP() LRESULT CDockingPaneMiniWnd::OnNcHitTest(CPoint point)
{ LRESULT ht = CXTPDockingPaneMiniWnd::OnNcHitTest(point); if (ht >= HTSIZEFIRST && ht <= HTSIZELAST)
ht = HTCLIENT; return ht; } or Solution 2
if you just need some pane to restrict size use
pPane->SetMinTrackSize(sz) and pPane->SetMaxTrackSize(sz)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
guywmustang
Newbie Joined: 17 April 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Thanks, I'll give that a try and let ya know what worked! |
|
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 |