mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Patch by Filip Navara.
- Work on correctly activating the MDI child windows. svn path=/trunk/; revision=7657
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user