Fixed (I hope) the wxDialog reactivation bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2000-02-21 09:42:31 +00:00
parent 5f8525bf22
commit 6a088435b3

View 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);
}