From: Julian Smart Date: Mon, 21 Feb 2000 09:42:31 +0000 (+0000) Subject: Fixed (I hope) the wxDialog reactivation bug X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6a088435b32d8e186d1efe1d95ddb56e96fcfcf3 Fixed (I hope) the wxDialog reactivation bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 888b7713d7..2a01b7671d 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -619,6 +619,13 @@ int wxDialog::ShowModal() void wxDialog::EndModal(int retCode) { SetReturnCode(retCode); + + HWND hwndParent = GetParent() ? (HWND) GetParent()->GetHWND() : (HWND)NULL; + if ( hwndParent ) + { + ::BringWindowToTop(hwndParent); + } + Show(FALSE); }