X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..d13c32e99d20b8282f590b5f5beef50b63662e5a:/src/msw/dcprint.cpp diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 35c568f7a5..23593c665a 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -10,7 +10,6 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation #pragma implementation "dcprint.h" #endif @@ -26,11 +25,10 @@ #include "wx/dcprint.h" #include "math.h" -#include "fstream.h" #include -#if USE_COMMON_DIALOGS +#if wxUSE_COMMON_DIALOGS #include #endif @@ -61,13 +59,13 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_nam if (!file.IsNull() && file != "") m_filename = file; -#if USE_COMMON_DIALOGS +#if wxUSE_COMMON_DIALOGS if (interactive) { PRINTDLG pd; pd.lStructSize = sizeof( PRINTDLG ); - pd.hwndOwner=NULL; + pd.hwndOwner=(HWND) NULL; pd.hDevMode=(HANDLE)NULL; pd.hDevNames=(HANDLE)NULL; pd.Flags=PD_RETURNDC | PD_NOSELECTION | PD_NOPAGENUMS; @@ -110,7 +108,7 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_nam { // int width = GetDeviceCaps(m_hDC, VERTRES); // int height = GetDeviceCaps(m_hDC, HORZRES); - SetMapMode(MM_TEXT); + SetMapMode(wxMM_TEXT); } SetBrush(*wxBLACK_BRUSH); SetPen(*wxBLACK_PEN); @@ -126,7 +124,7 @@ wxPrinterDC::wxPrinterDC(WXHDC theDC) { // int width = GetDeviceCaps(m_hDC, VERTRES); // int height = GetDeviceCaps(m_hDC, HORZRES); - SetMapMode(MM_TEXT); + SetMapMode(wxMM_TEXT); } SetBrush(*wxBLACK_BRUSH); SetPen(*wxBLACK_PEN);