mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
don't clip moving rectangles to the work area for topmost windows
svn path=/trunk/; revision=9453
This commit is contained in:
parent
03de8510c2
commit
08855e847a
1 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: defwnd.c,v 1.138 2004/05/20 14:34:14 weiden Exp $
|
/* $Id: defwnd.c,v 1.139 2004/05/21 12:46:59 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
|
||||||
|
@ -572,10 +572,18 @@ DefWndDoSizeMove(HWND hwnd, WORD wParam)
|
||||||
MapWindowPoints(hWndParent, HWND_DESKTOP, (LPPOINT)&clipRect, 2);
|
MapWindowPoints(hWndParent, HWND_DESKTOP, (LPPOINT)&clipRect, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if(!(ExStyle & WS_EX_TOPMOST))
|
||||||
{
|
{
|
||||||
SystemParametersInfoW(SPI_GETWORKAREA, 0, &clipRect, 0);
|
SystemParametersInfoW(SPI_GETWORKAREA, 0, &clipRect, 0);
|
||||||
mouseRect = clipRect;
|
mouseRect = clipRect;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetRect(&mouseRect, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
|
||||||
|
clipRect = mouseRect;
|
||||||
|
}
|
||||||
|
}
|
||||||
ClipCursor(&clipRect);
|
ClipCursor(&clipRect);
|
||||||
|
|
||||||
origRect = sizingRect;
|
origRect = sizingRect;
|
||||||
|
|
Loading…
Reference in a new issue