user32: Activate an MDI child on WM_SETFOCUS as well as on WM_CHILDACTIVATE.
This commit is contained in:
parent
e744c3a5b1
commit
474a8f5357
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue