X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2447e8408982b9a2528a56ec00010458e70f4db..96c9640205933ad0673d5af2c96af0816c50160c:/src/msw/progdlg.cpp diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index 0cb869aa2e..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,6 +316,8 @@ wxProgressDialog::wxProgressDialog( const wxString& title, #ifdef wxHAS_MSW_TASKDIALOG if ( HasNativeTaskDialog() ) { + SetTopParent(parent); + SetPDStyle(style); SetMaximum(maximum); Show();