Patch by Filip Navara.

- Work on correctly activating the MDI child windows.

svn path=/trunk/; revision=7657
This commit is contained in:
Gé van Geldorp 2004-01-15 20:59:35 +00:00
parent 077f983899
commit 6afe5b36ec

View file

@ -280,7 +280,16 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
}
ExStyle = GetWindowLongW(hWnd, GWL_EXSTYLE);
Active = (GetForegroundWindow() == hWnd);
if (ExStyle & WS_EX_MDICHILD)
{
Active = IsChild(GetForegroundWindow(), hWnd);
if (Active)
Active = (hWnd == (HWND)SendMessageW(GetParent(hWnd), WM_MDIGETACTIVE, 0, 0));
}
else
{
Active = (GetForegroundWindow() == hWnd);
}
GetWindowRect(hWnd, &WindowRect);
GetClientRect(hWnd, &ClientRect);