Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Restrict pane resize on Frame Resize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Restrict pane resize on Frame Resize

 Post Reply Post Reply
mojonez View Drop Down

Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post Topic: Restrict pane resize on Frame Resize
    Posted: 07 March 2012 at 9:25pm
I have a typical standard frame window with a single docking pane manager with multiple panes.
When the user resizes the frame window, i am trying to have only have particular pane(s) resize (e.g. all middle column panes)  -  not all panes resize gradually as is the default behavior. 
Sort of a "preferred pane size".
In general, all panes have their own custom min/max sizes, so they are not restricted from being manually resized via their splitter directly, so i cant simply set their size as fixed.
I tried freezing some panes size on main fame RecalcLayout before the size notify goes into the docking manager, then unfreezing them after, but this does not work (bad things happen in the thread when panemanager->RecalcFrameLayout(pane) is called).

CRect r = pane->GetPaneWindowRect();
sz.SetSize(r.Width(), r.Height());

Skipping the RecalcFrameLayout call doesnt seem to work either.
Has anyone found a way to achieve this?
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.063 seconds.