]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/progdlg.cpp
Enable variadic macros for VC9 and later.
[wxWidgets.git] / src / msw / progdlg.cpp
index 0cb869aa2ef91d557c41f246e3cd424e463e3c98..8191f6b08478b66554b1e4484b717b549981ceb8 100644 (file)
@@ -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();