X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/837e57436a89516a5fa9f478f401e06bd872c17c..eda61172d06869da6cb1cfc9700cd44962078e5c:/src/msw/dialog.cpp diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 7870d6aebe..44cd609ee9 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -123,7 +123,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, // resizeable or not (but a resizeable dialog always has caption - // otherwise it would look too strange) const wxChar *dlg; - if ( style & wxTHICK_FRAME ) + if ( style & wxRESIZE_BORDER ) dlg = _T("wxResizeableDialog"); else if ( style & wxCAPTION ) dlg = _T("wxCaptionDialog"); @@ -171,9 +171,10 @@ wxDialog::~wxDialog() wxTopLevelWindows.DeleteObject(this); + Show(FALSE); + if (m_modalShowing) { - Show(FALSE); // For some reason, wxWindows can activate another task altogether // when a frame is destroyed after a modal dialog has been invoked. // Try to bring the parent to the top. @@ -185,14 +186,10 @@ wxDialog::~wxDialog() } m_modalShowing = FALSE; - if ( GetHWND() ) - ShowWindow((HWND) GetHWND(), SW_HIDE); if ( (GetWindowStyleFlag() & wxDIALOG_MODAL) != wxDIALOG_MODAL ) wxModelessWindows.DeleteObject(this); - UnsubclassWin(); - // If this is the last top-level window, exit. if (wxTheApp && (wxTopLevelWindows.Number() == 0)) {