mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
[UXTHEME]
Temporarily disable the WS_EX_DLGMODALFRAME test whose presence broke opening the system menu when the user clicks on the window caption icon. This half-broken DefWndNCHitTest comes from user32; see r70718 for more details. svn path=/trunk/; revision=70719
This commit is contained in:
parent
e02c739f6d
commit
fe53065a4e
|
@ -950,7 +950,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
||||||
ButtonWidth = GetSystemMetrics(SM_CXSIZE);
|
ButtonWidth = GetSystemMetrics(SM_CXSIZE);
|
||||||
|
|
||||||
ButtonWidth -= 4;
|
ButtonWidth -= 4;
|
||||||
ButtonWidth+= BUTTON_GAP_SIZE;
|
ButtonWidth += BUTTON_GAP_SIZE;
|
||||||
|
|
||||||
if (wi.dwStyle & WS_SYSMENU)
|
if (wi.dwStyle & WS_SYSMENU)
|
||||||
{
|
{
|
||||||
|
@ -960,7 +960,13 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(!(wi.dwExStyle & WS_EX_DLGMODALFRAME))
|
// if(!(wi.dwExStyle & WS_EX_DLGMODALFRAME))
|
||||||
|
// FIXME: The real test should check whether there is
|
||||||
|
// an icon for the system window, and if so, do the
|
||||||
|
// rect.left increase.
|
||||||
|
// See win32ss/user/user32/windows/nonclient.c!DefWndNCHitTest
|
||||||
|
// and win32ss/user/ntuser/nonclient.c!GetNCHitEx which does
|
||||||
|
// the test better.
|
||||||
WindowRect.left += ButtonWidth;
|
WindowRect.left += ButtonWidth;
|
||||||
WindowRect.right -= ButtonWidth;
|
WindowRect.right -= ButtonWidth;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue