Activate another window when the dialog gets hidden in EndDialog.

This commit is contained in:
Alexandre Julliard 2004-05-18 20:45:22 +00:00
parent 47a1df45b2
commit b38b6821fb
1 changed files with 3 additions and 0 deletions

View File

@ -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;