X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..dae60aeebb7c3fedf9c8ce8775bbd7a11bdc508e:/include/wx/msw/dragimag.h diff --git a/include/wx/msw/dragimag.h b/include/wx/msw/dragimag.h index d76a95a9b3..da33ac0795 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: @@ -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 @@ -264,8 +266,9 @@ protected: private: DECLARE_DYNAMIC_CLASS(wxDragImage) - DECLARE_NO_COPY_CLASS(wxDragImage) + wxDECLARE_NO_COPY_CLASS(wxDragImage); }; +#endif // wxUSE_DRAGIMAGE #endif // _WX_DRAGIMAG_H_