mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
- Minor correction to hit testing algorithm
svn path=/trunk/; revision=8091
This commit is contained in:
parent
50b64b7cd1
commit
a99ec32abd
1 changed files with 2 additions and 2 deletions
|
@ -667,7 +667,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
||||||
return HTBORDER;
|
return HTBORDER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Style & WS_CAPTION)
|
if ((Style & WS_CAPTION) == WS_CAPTION)
|
||||||
{
|
{
|
||||||
if (ExStyle & WS_EX_TOOLWINDOW)
|
if (ExStyle & WS_EX_TOOLWINDOW)
|
||||||
WindowRect.top += GetSystemMetrics(SM_CYSMCAPTION);
|
WindowRect.top += GetSystemMetrics(SM_CYSMCAPTION);
|
||||||
|
@ -697,7 +697,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
||||||
return HTMAXBUTTON;
|
return HTMAXBUTTON;
|
||||||
if (Style & WS_MINIMIZEBOX)
|
if (Style & WS_MINIMIZEBOX)
|
||||||
WindowRect.right -= GetSystemMetrics(SM_CXSIZE);
|
WindowRect.right -= GetSystemMetrics(SM_CXSIZE);
|
||||||
if (Point.x >= WindowRect.right)
|
if (Point.x >= WindowRect.right)
|
||||||
return HTMINBUTTON;
|
return HTMINBUTTON;
|
||||||
return HTCAPTION;
|
return HTCAPTION;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue