X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f27f9577caadb552c0c90c84130a52e0451196ec..dc2513650dce762388f5469360cbb0ac84dcc2d0:/src/generic/progdlgg.cpp diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index fad7b159f5..7b6fd4701b 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -4,7 +4,6 @@ // Author: Karsten Ballueder // Modified by: // Created: 09.05.1999 -// RCS-ID: $Id$ // Copyright: (c) Karsten Ballueder // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -146,12 +145,19 @@ wxGenericProgressDialog::wxGenericProgressDialog(const wxString& title, Create( title, message, maximum, parent, style ); } +void wxGenericProgressDialog::SetTopParent(wxWindow* parent) +{ + m_parentTop = GetParentForModalDialog(parent, GetWindowStyle()); +} + bool wxGenericProgressDialog::Create( const wxString& title, const wxString& message, int maximum, wxWindow *parent, int style ) { + SetTopParent(parent); + m_parentTop = wxGetTopLevelParent(parent); m_pdStyle = style;