]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed (I hope) the wxDialog reactivation bug
authorJulian Smart <julian@anthemion.co.uk>
Mon, 21 Feb 2000 09:42:31 +0000 (09:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 21 Feb 2000 09:42:31 +0000 (09:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dialog.cpp

index 888b7713d7485a61c510ddf810ecac4adb4e4661..2a01b7671db076e2d3cf9d57b642d43c29d61925 100644 (file)
@@ -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);
 }