Do not activate an MDI child if the child is invisible.

This commit is contained in:
Dmitry Timoshkov 2004-05-25 18:03:32 +00:00 committed by Alexandre Julliard
parent a270615fdb
commit e069cf1476

View file

@ -1469,7 +1469,8 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
return 0;
case WM_SETFOCUS:
if (ci->hwndActiveChild != hwnd) MDI_ChildActivate( client, hwnd );
if (ci->hwndActiveChild != hwnd && IsWindowVisible(hwnd))
MDI_ChildActivate( client, hwnd );
break;
case WM_CHILDACTIVATE: