Print Page | Close Window

Docking does not resize current view!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=4741
Printed Date: 05 May 2024 at 9:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking does not resize current view!
Posted By: znakeeye
Subject: Docking does not resize current view!
Date Posted: 04 August 2006 at 4:36pm
Time to bother you again! Working on this huge project :)
 
I've tried everything. I actually managed to crash my computer when searching for a solution. Here's the thing:
 
In my frame, I have a docking pane and a splitter with two views. The sizes of the two views are very important, so I change them in CMyFrame::OnSize(). Now, if I attach my pane it simply pushes the whole splitter view to the side and NO size/move message is being sent!
 
I tried using Spy++ to track any messages to my pane and that caused my computer to crash. As far as I know, Spy++ only installs a hook. Why does it cause a severe crash?!
 
So my question is: How do I solve this absent resizing? Do I have to manually check the size of the frame window and subtract it by the pane window size and finally trigger a WM_SIZE somehow?
 
Thanks in advance!



Replies:
Posted By: Oleg
Date Posted: 04 August 2006 at 6:38pm
Hi,
 
When you attach docking pane/ when splitters of docking panes moved Frame never change its size, so Windows doesn't send WM_SIZE.
but size of _Splitter_ is changing.
So:
override CSplitterWnd (or CXTSplitterWnd if you use it) and catch WM_SIZE in this derived class.
 
Hope it will work :)
 
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net