]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
added Show/HideNativeCaret() (patch 759924)
[wxWidgets.git] / src / msw / dcprint.cpp
index 51f6c9c01e982c3e2e9355e845c66b8210f873b6..aac533377b575177fdc24c21ff9b33bf1379b6a2 100644 (file)
 #if wxUSE_PRINTING_ARCHITECTURE
 
 #include "wx/msw/private.h"
+
+#if wxUSE_WXDIB
 #include "wx/msw/dib.h"
+#endif
+
 #include "wx/dcprint.h"
 #include "math.h"
 
@@ -341,6 +345,7 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc,
                                   const wxBitmap& bmp,
                                   wxCoord x, wxCoord y)
 {
+#if wxUSE_WXDIB
     wxDIB dib(bmp);
     if ( !dib.IsOk() )
         return FALSE;
@@ -373,6 +378,9 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc,
     }
 
     return TRUE;
+#else
+    return FALSE;
+#endif
 }
 
 void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,