]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
Ensure that validators work even in presence of pushed event handlers.
[wxWidgets.git] / src / msw / dcprint.cpp
index c41e222d7b989150b732c47b87dfbac20e369e2c..9ca81119cbe74b2853c5ff5b781e776bc201fdd8 100644 (file)
@@ -83,7 +83,7 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name,
                          const wxString& device_name,
                          const wxString& file,
                          bool interactive,
-                         int orientation)
+                         wxPrintOrientation orientation)
 {
     m_isInteractive = interactive;
 
@@ -341,7 +341,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
                 );
     if ( !hDC )
     {
-        wxLogLastError(_T("CreateDC(printer)"));
+        wxLogLastError(wxT("CreateDC(printer)"));
     }
 
     return (WXHDC) hDC;
@@ -367,7 +367,7 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc,
     DIBSECTION ds;
     if ( !::GetObject(dib.GetHandle(), sizeof(ds), &ds) )
     {
-        wxLogLastError(_T("GetObject(DIBSECTION)"));
+        wxLogLastError(wxT("GetObject(DIBSECTION)"));
 
         return false;
     }
@@ -401,7 +401,7 @@ void wxPrinterDCImpl::DoDrawBitmap(const wxBitmap& bmp,
                                wxCoord x, wxCoord y,
                                bool useMask)
 {
-    wxCHECK_RET( bmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") );
+    wxCHECK_RET( bmp.Ok(), wxT("invalid bitmap in wxPrinterDC::DrawBitmap") );
 
     int width = bmp.GetWidth(),
         height = bmp.GetHeight();