mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -573,9 +573,8 @@ DefWndDoSizeMove(HWND hwnd, WORD wParam)
|
|||
}
|
||||
else
|
||||
{
|
||||
SetRect(&mouseRect, 0, 0, GetSystemMetrics(SM_CXSCREEN),
|
||||
GetSystemMetrics(SM_CYSCREEN));
|
||||
clipRect = mouseRect;
|
||||
SystemParametersInfoW(SPI_GETWORKAREA, 0, &clipRect, 0);
|
||||
mouseRect = clipRect;
|
||||
}
|
||||
ClipCursor(&clipRect);
|
||||
|
||||
|
|
Loading…
Reference in a new issue