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

Docking pane resize

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


Joined: 29 October 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote terminator_123 Quote  Post ReplyReply Direct Link To This Post Topic: Docking pane resize
    Posted: 28 May 2008 at 11:14am

Hi all,

I'm trying to resize a docking pane by using the following code that I found in other forum threads.


    int wid = 650;
    m_pPane->SetMinTrackSize(CSize(wid, 0));
    m_pPane->SetMaxTrackSize(CSize(wid, rc.Height()));
    m_PaneManager.RecalcFramesLayout();
    m_PaneManager.NormalizeSplitters();
    m_pPane->SetMinTrackSize(CSize(32, 0));
    m_pPane->SetMaxTrackSize(CSize(32567, 32567));
    m_PaneManager.ShowPane(m_pPane);


This works fine and the pane is resized but after doing this, I can't resize the docking pane from the user interface by dragging the splitter .
Is there a way to both set the size from code as well as retain the ability to change size with the splitter ?

Thanks,
Pavan

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: 28 May 2008 at 1:53pm
Hi,
 
try to  replace to
m_pPane->SetMinTrackSize(CSize(0, 0));
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
terminator_123 View Drop Down
Newbie
Newbie


Joined: 29 October 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote terminator_123 Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 12:29am
Thanks Oleg.
It was a mistake in another part of my own code that causes the problem. I have corrected it.
Sorry for the trouble.
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.156 seconds.