X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/516ed23a948380fab200457b5adb2907e0b180a0..96c9640205933ad0673d5af2c96af0816c50160c:/src/msw/progdlg.cpp diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index f51c879901..8191f6b084 100644 --- a/src/msw/progdlg.cpp +++ b/src/msw/progdlg.cpp @@ -307,7 +307,7 @@ wxProgressDialog::wxProgressDialog( const wxString& title, int maximum, wxWindow *parent, int style ) - : wxGenericProgressDialog(parent, style), + : wxGenericProgressDialog(), m_taskDialogRunner(NULL), m_sharedData(NULL), m_message(message), @@ -316,7 +316,8 @@ wxProgressDialog::wxProgressDialog( const wxString& title, #ifdef wxHAS_MSW_TASKDIALOG if ( HasNativeTaskDialog() ) { - SetParent(GetParentForModalDialog(parent, GetWindowStyle())); + SetTopParent(parent); + SetPDStyle(style); SetMaximum(maximum); Show();