]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/dragimgg.h
#4479: wx.ComboBox needs a SetFont method
[wxWidgets.git] / include / wx / generic / dragimgg.h
index e680ecd30572e4165ad927c7ff31a4ff54fb9f30..7c1c72a239fa6d35a45b47d3852f585a9657fcd2 100644 (file)
@@ -88,7 +88,7 @@
  * wxGenericDragImage
  */
 
-class WXDLLEXPORT wxGenericDragImage: public wxObject
+class WXDLLIMPEXP_CORE wxGenericDragImage: public wxObject
 {
 public:
 
@@ -157,13 +157,14 @@ public:
     // Attributes
     ////////////////////////////////////////////////////////////////////////////
 
+#ifdef wxHAS_NATIVE_OVERLAY
+    // backing store is not used when native overlays are
+    void SetBackingBitmap(wxBitmap* WXUNUSED(bitmap)) { }
+#else
     // For efficiency, tell wxGenericDragImage to use a bitmap that's already
     // created (e.g. from last drag)
-    void SetBackingBitmap(wxBitmap* bitmap) { 
-#ifndef wxHAS_NATIVE_OVERLAY
-        m_pBackingBitmap = bitmap; 
-#endif
-    }
+    void SetBackingBitmap(wxBitmap* bitmap) { m_pBackingBitmap = bitmap; }
+#endif // wxHAS_NATIVE_OVERLAY/!wxHAS_NATIVE_OVERLAY
 
     // Operations
     ////////////////////////////////////////////////////////////////////////////