handling docking pane resizing |
Post Reply |
Author | |
chinhster
Newbie Joined: 02 December 2005 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 02 December 2005 at 11:30am |
I've got a window that contains fixed-width text output. I'm trying to duplicate X-Windows xterm behavior where if the user resizes the window, it will display the number of rows and columns in a popup window as well snap the window size to a grid of rows and columns so that there are no partial lines or characters.
This was easy to do prior to MFC/Xtreme but we've recently changed this window to a docking pane and I can't figure out how to intercept the WM_ENTERSIZEMOVE, WM_EXITSIZEMOVE, and WM_SIZE messages to accomplish this goal (I can't figure out which class to overload). |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You can override your CEdit and catch WM_SIZE. WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE will not send. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chinhster
Newbie Joined: 02 December 2005 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
I should mention I was able to do what I wanted with a CMDIChildWnd, just not a docking pane.
> WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE will not send. I need WM_EXITSIZEMOVE to tell me when the user has finished resizing the window (to destroy the popup window that displays the number of rows and columns). Is there any other way to get this? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
The problem with WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE for CMDIChildWnd that they not called if you maximaze child frame and will resize whole frame window. As rezult child frame will be resized also, but WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE will not be generated.... Same problem with dockingpanes. At least 3 way how you can resize them - resize parent frame, resize splitter, float it and resize floating mini frame... Actualy catch first and third not problem... Catch them in parent frame... |
|
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 |