mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
Activate another window when the dialog gets hidden in EndDialog.
This commit is contained in:
parent
47a1df45b2
commit
b38b6821fb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user