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:
parent
5f8525bf22
commit
6a088435b3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user