mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 08:54:40 +00:00
clip to the work area when dragging a window
svn path=/trunk/; revision=9448
This commit is contained in:
parent
0a242842b2
commit
0cc4a84668
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: defwnd.c,v 1.137 2004/05/13 20:24:26 navaraf Exp $
|
/* $Id: defwnd.c,v 1.138 2004/05/20 14:34:14 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -573,9 +573,8 @@ DefWndDoSizeMove(HWND hwnd, WORD wParam)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetRect(&mouseRect, 0, 0, GetSystemMetrics(SM_CXSCREEN),
|
SystemParametersInfoW(SPI_GETWORKAREA, 0, &clipRect, 0);
|
||||||
GetSystemMetrics(SM_CYSCREEN));
|
mouseRect = clipRect;
|
||||||
clipRect = mouseRect;
|
|
||||||
}
|
}
|
||||||
ClipCursor(&clipRect);
|
ClipCursor(&clipRect);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue