Alexandre Julliard : user32: Send WM_MOVING instead of WM_SIZING when moving a window.
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 15:19:20 CST 2012
Module: wine
Branch: master
Commit: e2c61baba0ceb0ca50d5a6506108d34af8a69122
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e2c61baba0ceb0ca50d5a6506108d34af8a69122
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Nov 26 16:01:30 2012 +0100
user32: Send WM_MOVING instead of WM_SIZING when moving a window.
---
dlls/user32/winpos.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 0ce3ddd..308e7ea 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -2771,8 +2771,6 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if (msg.message == WM_KEYDOWN) SetCursorPos( pt.x, pt.y );
else
{
- WPARAM wpSizingHit = 0;
-
if(!iconic && !DragFullWindows) draw_moving_frame( parent, hdc, &sizingRect, thickframe );
if (hittest == HTCAPTION) OffsetRect( &sizingRect, dx, dy );
if (ON_LEFT_BORDER(hittest)) sizingRect.left += dx;
@@ -2782,9 +2780,16 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
capturePoint = pt;
/* determine the hit location */
- if (hittest >= HTLEFT && hittest <= HTBOTTOMRIGHT)
- wpSizingHit = WMSZ_LEFT + (hittest - HTLEFT);
- SendMessageW( hwnd, WM_SIZING, wpSizingHit, (LPARAM)&sizingRect );
+ if (syscommand == SC_SIZE)
+ {
+ WPARAM wpSizingHit = 0;
+
+ if (hittest >= HTLEFT && hittest <= HTBOTTOMRIGHT)
+ wpSizingHit = WMSZ_LEFT + (hittest - HTLEFT);
+ SendMessageW( hwnd, WM_SIZING, wpSizingHit, (LPARAM)&sizingRect );
+ }
+ else
+ SendMessageW( hwnd, WM_MOVING, 0, (LPARAM)&sizingRect );
if (!iconic)
{
More information about the wine-cvs
mailing list