Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Lock pane sizing?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Lock pane sizing?

 Post Reply Post Reply
Author
Message
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post 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 Smile
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: 15 June 2006 at 9:03pm
Hi,
 
m_paneManager.LockSplitters();
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2006 at 5:03pm
<bump>
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: 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
Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2006 at 1:00pm

Thanks, I'll give that a try and let ya know what worked!

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.