X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2447e8408982b9a2528a56ec00010458e70f4db..0482be5e1d33c8973d86145801f1840b26334a00:/src/msw/progdlg.cpp diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index 0cb869aa2e..553c939fd2 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() ) { + SetParent(GetParentForModalDialog(parent, GetWindowStyle())); + SetPDStyle(style); SetMaximum(maximum); Show();