Commit e2c61bab authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Send WM_MOVING instead of WM_SIZING when moving a window.

parent ba4de80e
......@@ -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 (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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment