Docking does not resize current view! |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |