![]() |
Lock pane sizing? |
Post Reply
|
| Author | |
guywmustang
Newbie
Joined: 17 April 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Topic: Lock pane sizing?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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 June 2006 at 9:03pm |
|
Hi,
m_paneManager.LockSplitters();
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
guywmustang
Newbie
Joined: 17 April 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 June 2006 at 2:11pm |
|
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)
Quote Reply
Posted: 21 June 2006 at 5:03pm |
|
<bump>
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 June 2006 at 7:51pm |
|
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)
Quote Reply
Posted: 22 June 2006 at 1:00pm |
|
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 |