]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
Rename() (partly) implemented for wxRegConf
[wxWidgets.git] / src / msw / dcprint.cpp
index 6802ea97826cf3e0d5a51c65345b4fe95b896627..43a6be9b8d7a0c8f6fe33be1dab8b7a2a187fc08 100644 (file)
@@ -10,7 +10,6 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma implementation
 #pragma implementation "dcprint.h"
 #endif
 
 
 #include "wx/dcprint.h"
 #include "math.h"
-#include "fstream.h"
 
 #include <windows.h>
 
-#if USE_COMMON_DIALOGS
+#if wxUSE_COMMON_DIALOGS
 #include <commdlg.h>
 #endif
 
 IMPLEMENT_CLASS(wxPrinterDC, wxDC)
 #endif
 
-wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_name, const wxString& file, const bool interactive, const int orientation)
+wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_name, const wxString& file, bool interactive, int orientation)
 {
   m_isInteractive = interactive;
 
   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;