Commit in reactos/subsys/win32k/ntuser on MAIN
monitor.c+19-21.2 -> 1.3
- Implement NtUserMonitorFromWindow.

reactos/subsys/win32k/ntuser
monitor.c 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- monitor.c	20 Nov 2004 16:46:06 -0000	1.2
+++ monitor.c	14 Dec 2004 23:38:14 -0000	1.3
@@ -878,6 +878,23 @@
 	IN HWND hWnd,
 	IN DWORD dwFlags)
 {
-	UNIMPLEMENTED;
-	return (HMONITOR)NULL;
+	PWINDOW_OBJECT Window;
+	HMONITOR hMonitor = NULL;
+	RECT Rect;
+  
+        Window = IntGetWindowObject(hWnd);
+	if (Window == NULL)
+	{
+		SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
+		return (HMONITOR)NULL;
+	}
+
+	Rect.left = Rect.right = Window->WindowRect.left;
+	Rect.top = Rect.bottom = Window->WindowRect.bottom;
+
+	IntGetMonitorsFromRect(&Rect, &hMonitor, NULL, 1, dwFlags);
+
+	IntReleaseWindowObject(Window);
+
+	return hMonitor;
 }
CVSspam 0.2.8