X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..a328684392b1a97623ff02cb4bb174d25f376900:/src/generic/dragimgg.cpp diff --git a/src/generic/dragimgg.cpp b/src/generic/dragimgg.cpp index 8e89afe823..20e90cf378 100644 --- a/src/generic/dragimgg.cpp +++ b/src/generic/dragimgg.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dragimgg.h" #endif @@ -172,19 +172,23 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor) return Create(bitmap, cursor); } +#if wxUSE_TREECTRL // Create a drag image for the given tree control item bool wxGenericDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) { wxString str = treeCtrl.GetItemText(id); return Create(str); } +#endif +#if wxUSE_LISTCTRL // Create a drag image for the given list control item bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id) { wxString str = listCtrl.GetItemText(id); return Create(str); } +#endif // Begin drag bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,