Commit b38b6821 authored by Alexandre Julliard's avatar Alexandre Julliard

Activate another window when the dialog gets hidden in EndDialog.

parent 47a1df45
......@@ -38,6 +38,7 @@
#include "wine/unicode.h"
#include "controls.h"
#include "win.h"
#include "winpos.h"
#include "user.h"
#include "wine/debug.h"
......@@ -898,6 +899,8 @@ BOOL WINAPI EndDialog( HWND hwnd, INT_PTR retval )
SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE
| SWP_NOZORDER | SWP_NOACTIVATE | SWP_HIDEWINDOW);
if (hwnd == GetActiveWindow()) WINPOS_ActivateOtherWindow( hwnd );
/* unblock dialog loop */
PostMessageA(hwnd, WM_NULL, 0, 0);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment