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

Handle pane resize

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Handle pane resize
    Posted: 09 February 2008 at 8:28pm

I have this layout:

| Pane1
| --------
| Pane2
 
When this coupled pane is resized horizontally, I want Pane1 and Pane2 to resize vertically too.
 
Basically Pane1 is responsible for resizing Pane2! How do I accomplish that?
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: 17 February 2008 at 4:29am
Hi,
Not really sure how it should work. You can patch our sources and change CXTPDockingPaneSplitterWnd::OnLButtonDown method to implement what you need.
 
For next release we will add notification when user start/stop resize splitter.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2008 at 8:50am
That is what I'm looking for. Can't wait for the next release :)
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2008 at 9:04pm
I Need this too, since I am putting forms inside a pane, and need it to know when it is resized by way of moving the splitter rather than only when the whole frame is resized.
 
Can't you just call SetWindowPos on the panes when you resize the split?
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2008 at 9:39pm
Actually it looks like certain resizing takes place,
 
The pane's window is resized if the splitter makes it bigger, just not if it gets smaller.
 
So this looks like a bug to me.
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2008 at 9:53pm
I have to take all that back.
 
It does resize on reduction as well, my message map macro was disabled when I tested this.  Sorry!
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.