user32: Activate an MDI child on WM_SETFOCUS as well as on
WM_CHILDACTIVATE
Dmitry Timoshkov
dmitry at codeweavers.com
Tue Feb 13 02:24:17 CST 2007
Hello,
this patch should fix a problem reported in the bug #7364.
This piece of code did exist in the old MDI code, but erroneously got removed.
Changelog:
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 hwnd, UINT message,
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;
--
1.4.4.4
More information about the wine-patches
mailing list