mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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
1 changed files with 8 additions and 2 deletions
|
@ -950,7 +950,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
|||
ButtonWidth = GetSystemMetrics(SM_CXSIZE);
|
||||
|
||||
ButtonWidth -= 4;
|
||||
ButtonWidth+= BUTTON_GAP_SIZE;
|
||||
ButtonWidth += BUTTON_GAP_SIZE;
|
||||
|
||||
if (wi.dwStyle & WS_SYSMENU)
|
||||
{
|
||||
|
@ -960,7 +960,13 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
|||
}
|
||||
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.right -= ButtonWidth;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue