svn path=/trunk/; revision=6419
-/* $Id: defwnd.c,v 1.100 2003/10/19 19:51:48 navaraf Exp $
+/* $Id: defwnd.c,v 1.101 2003/10/23 19:39:00 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
DefWndDoSizeMove(HWND hwnd, WORD wParam)
{
MSG msg;
DefWndDoSizeMove(HWND hwnd, WORD wParam)
{
MSG msg;
- RECT sizingRect, mouseRect, origRect;
+ RECT sizingRect, mouseRect, origRect, clipRect;
HDC hdc;
LONG hittest = (LONG)(wParam & 0x0f);
HCURSOR hDragCursor = 0, hOldCursor = 0;
HDC hdc;
LONG hittest = (LONG)(wParam & 0x0f);
HCURSOR hDragCursor = 0, hOldCursor = 0;
{
MapWindowPoints( 0, hWndParent, (LPPOINT)&sizingRect, 2 );
GetClientRect(hWndParent, &mouseRect );
{
MapWindowPoints( 0, hWndParent, (LPPOINT)&sizingRect, 2 );
GetClientRect(hWndParent, &mouseRect );
+ clipRect = mouseRect;
+ MapWindowPoints(hWndParent, HWND_DESKTOP, (LPPOINT)&clipRect, 2);
}
else
{
SetRect(&mouseRect, 0, 0, GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN));
}
else
{
SetRect(&mouseRect, 0, 0, GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN));
+ SystemParametersInfoW(SPI_GETWORKAREA, 0, &clipRect, 0);
+ ClipCursor(&clipRect);
+
origRect = sizingRect;
if (ON_LEFT_BORDER(hittest))
{
origRect = sizingRect;
if (ON_LEFT_BORDER(hittest))
{
if( iconic )
{
if( moved ) /* restore cursors, show icon title later on */
if( iconic )
{
if( moved ) /* restore cursors, show icon title later on */