user32: Activate an MDI child on WM_SETFOCUS as well as on WM_CHILDACTIVATE.

This commit is contained in:
Dmitry Timoshkov 2007-02-13 16:24:17 +08:00 committed by Alexandre Julliard
parent e744c3a5b1
commit 474a8f5357
1 changed files with 5 additions and 0 deletions

View File

@ -1480,6 +1480,11 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
SendMessageW( client, WM_MDIDESTROY, (WPARAM)hwnd, 0 ); SendMessageW( client, WM_MDIDESTROY, (WPARAM)hwnd, 0 );
return 0; return 0;
case WM_SETFOCUS:
if (ci->hwndActiveChild != hwnd)
MDI_ChildActivate( client, hwnd );
break;
case WM_CHILDACTIVATE: case WM_CHILDACTIVATE:
MDI_ChildActivate( client, hwnd ); MDI_ChildActivate( client, hwnd );
return 0; return 0;