]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
WS_CLIPCHILDREN is not always enabled in wxNotebook (caused painting problems).
[wxWidgets.git] / src / msw / dcprint.cpp
index dd2a5488130dbbb84c9941629446ff0df56dc6d2..23593c665aa3e2e6dd36dd02fe2b46cd823a8cbb 100644 (file)
@@ -10,7 +10,6 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma implementation
 #pragma implementation "dcprint.h"
 #endif
 
@@ -66,7 +65,7 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_nam
      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;
@@ -109,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);
@@ -125,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);