#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h"
+#include "wx/generic/progdlgg.h"
#include "wx/paper.h"
#include <stdlib.h>
printout->GetTitle(),
_("Printing..."),
totalPages,
- parent );
-
+ parent,
+ wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
+
printout->OnBeginPrinting();
bool keepGoing = TRUE;
}
else
{
- sm_abortIt = true;
- keepGoing = false;
+ sm_abortIt = TRUE;
+ keepGoing = FALSE;
}
}
+ wxYield();
}
printout->OnEndDocument();
}