Author: jimtabor
Date: Sun Nov 27 13:29:15 2011
New Revision: 54510
URL:
http://svn.reactos.org/svn/reactos?rev=54510&view=rev
Log:
- Fix GetNCHitEx rects.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c [iso-8859-1] Sun Nov 27 13:29:15
2011
@@ -295,11 +295,20 @@
if (!pWnd) return HTNOWHERE;
- rcClient.left = rcClient.top = rcWindow.left = rcWindow.top = 0;
- rcWindow.right = pWnd->rcWindow.right;
- rcWindow.bottom = pWnd->rcWindow.bottom;
- rcClient.right = pWnd->rcClient.right;
- rcClient.bottom = pWnd->rcClient.bottom;
+ if (pWnd == UserGetDesktopWindow())//pWnd->fnid == FNID_DESKTOP)
+ {
+ rcClient.left = rcClient.top = rcWindow.left = rcWindow.top = 0;
+ rcWindow.right = UserGetSystemMetrics(SM_CXSCREEN);
+ rcWindow.bottom = UserGetSystemMetrics(SM_CYSCREEN);
+ rcClient.right = UserGetSystemMetrics(SM_CXSCREEN);
+ rcClient.bottom = UserGetSystemMetrics(SM_CYSCREEN);
+ }
+ else
+ {
+ IntGetClientRect(pWnd, &rcClient); // This or
+ //rcClient = pWnd->rcClient; // this one?
+ rcWindow = pWnd->rcWindow;
+ }
if (!RECTL_bPointInRect(&rcWindow, pt.x, pt.y)) return HTNOWHERE;