Commit in reactos/lib/user32/windows on MAIN
defwnd.c+3-41.137 -> 1.138
clip to the work area when dragging a window

reactos/lib/user32/windows
defwnd.c 1.137 -> 1.138
diff -u -r1.137 -r1.138
--- defwnd.c	13 May 2004 20:24:26 -0000	1.137
+++ defwnd.c	20 May 2004 14:34:14 -0000	1.138
@@ -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 @@
     }
   else 
     {
-      SetRect(&mouseRect, 0, 0, GetSystemMetrics(SM_CXSCREEN), 
-	      GetSystemMetrics(SM_CYSCREEN));
-      clipRect = mouseRect;
+      SystemParametersInfoW(SPI_GETWORKAREA, 0, &clipRect, 0);
+      mouseRect = clipRect;
     }
   ClipCursor(&clipRect);
   
CVSspam 0.2.8