X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c34924f7bc6a373865e1f24f529ae9500230c6ed..86a6ecff59dfa3143b9a4a3a452e480e2210300b:/src/msw/printwin.cpp diff --git a/src/msw/printwin.cpp b/src/msw/printwin.cpp index 727d956f2c..ba0590e1d0 100644 --- a/src/msw/printwin.cpp +++ b/src/msw/printwin.cpp @@ -52,10 +52,7 @@ #include -#include "wx/msw/private.h" - -#include - +#include "wx/msw/wrapcdlg.h" #ifndef __WIN32__ #include #endif @@ -210,6 +207,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt sm_lastError = wxPRINTER_ERROR; delete dc; + return false; } sm_abortWindow = win; sm_abortWindow->Show(); @@ -281,7 +279,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt delete dc; - return (sm_lastError == wxPRINTER_NO_ERROR); + return sm_lastError == wxPRINTER_NO_ERROR; } wxDC* wxWindowsPrinter::PrintDialog(wxWindow *parent) @@ -428,9 +426,9 @@ LONG APIENTRY _EXPORT wxAbortProc(HDC WXUNUSED(hPr), int WXUNUSED(Code)) DispatchMessage(&msg); } - /* bAbort is TRUE (return is FALSE) if the user has aborted */ + /* bAbort is TRUE (return is FALSE) if the user has aborted */ - return (!wxPrinterBase::sm_abortIt); + return !wxPrinterBase::sm_abortIt; } #endif