mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +00:00
- Fix GetNCHitEx rects.
svn path=/trunk/; revision=54510
This commit is contained in:
parent
8b61c2709d
commit
355e8279a6
1 changed files with 14 additions and 5 deletions
|
@ -295,11 +295,20 @@ GetNCHitEx(PWND pWnd, POINT pt)
|
||||||
|
|
||||||
if (!pWnd) return HTNOWHERE;
|
if (!pWnd) return HTNOWHERE;
|
||||||
|
|
||||||
rcClient.left = rcClient.top = rcWindow.left = rcWindow.top = 0;
|
if (pWnd == UserGetDesktopWindow())//pWnd->fnid == FNID_DESKTOP)
|
||||||
rcWindow.right = pWnd->rcWindow.right;
|
{
|
||||||
rcWindow.bottom = pWnd->rcWindow.bottom;
|
rcClient.left = rcClient.top = rcWindow.left = rcWindow.top = 0;
|
||||||
rcClient.right = pWnd->rcClient.right;
|
rcWindow.right = UserGetSystemMetrics(SM_CXSCREEN);
|
||||||
rcClient.bottom = pWnd->rcClient.bottom;
|
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;
|
if (!RECTL_bPointInRect(&rcWindow, pt.x, pt.y)) return HTNOWHERE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue