X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f27f9577caadb552c0c90c84130a52e0451196ec..96c9640205933ad0673d5af2c96af0816c50160c:/src/msw/progdlg.cpp?ds=inline diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index 553c939fd2..8191f6b084 100644 --- a/src/msw/progdlg.cpp +++ b/src/msw/progdlg.cpp @@ -316,7 +316,7 @@ wxProgressDialog::wxProgressDialog( const wxString& title, #ifdef wxHAS_MSW_TASKDIALOG if ( HasNativeTaskDialog() ) { - SetParent(GetParentForModalDialog(parent, GetWindowStyle())); + SetTopParent(parent); SetPDStyle(style); SetMaximum(maximum);