int maximum,
wxWindow *parent,
int style )
- : wxGenericProgressDialog(parent, style),
+ : wxGenericProgressDialog(),
m_taskDialogRunner(NULL),
m_sharedData(NULL),
m_message(message),
#ifdef wxHAS_MSW_TASKDIALOG
if ( HasNativeTaskDialog() )
{
+ SetParent(GetParentForModalDialog(parent, GetWindowStyle()));
+ SetPDStyle(style);
SetMaximum(maximum);
Show();