Module: wine Branch: master Commit: 474a8f5357063ccc907144f6ec05da5d0a4dc39a URL: http://source.winehq.org/git/wine.git/?a=commit;h=474a8f5357063ccc907144f6ec...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Tue Feb 13 16:24:17 2007 +0800
user32: Activate an MDI child on WM_SETFOCUS as well as on WM_CHILDACTIVATE.
---
dlls/user32/mdi.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index 23dd8e9..190e0cc 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -1480,6 +1480,11 @@ LRESULT WINAPI DefMDIChildProcW( HWND hw SendMessageW( client, WM_MDIDESTROY, (WPARAM)hwnd, 0 ); return 0;
+ case WM_SETFOCUS: + if (ci->hwndActiveChild != hwnd) + MDI_ChildActivate( client, hwnd ); + break; + case WM_CHILDACTIVATE: MDI_ChildActivate( client, hwnd ); return 0;