X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..62c9b3d73fdf9a892a311241f1effc12dde0282a:/include/wx/msw/dragimag.h diff --git a/include/wx/msw/dragimag.h b/include/wx/msw/dragimag.h index 362767c24a..80d27e77d4 100644 --- a/include/wx/msw/dragimag.h +++ b/include/wx/msw/dragimag.h @@ -13,6 +13,8 @@ #ifndef _WX_DRAGIMAG_H_ #define _WX_DRAGIMAG_H_ +#if wxUSE_DRAGIMAGE + #include "wx/bitmap.h" #include "wx/icon.h" #include "wx/cursor.h" @@ -97,7 +99,7 @@ * wxDragImage */ -class WXDLLEXPORT wxDragImage: public wxObject +class WXDLLIMPEXP_CORE wxDragImage: public wxObject { public: @@ -168,7 +170,7 @@ public: } #endif - ~wxDragImage(); + virtual ~wxDragImage(); // Attributes //////////////////////////////////////////////////////////////////////////// @@ -212,7 +214,7 @@ public: // Begin drag. hotspot is the location of the drag position relative to the upper-left // corner of the image. - bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = (wxRect*) NULL); + bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = NULL); // Begin drag. hotspot is the location of the drag position relative to the upper-left // corner of the image. This is full screen only. fullScreenRect gives the @@ -267,5 +269,6 @@ private: DECLARE_NO_COPY_CLASS(wxDragImage) }; +#endif // wxUSE_DRAGIMAGE #endif // _WX_DRAGIMAG_H_