]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/stc/stc.h.in
removed calls to wxWindowBase::InitBase(), it is called from the ctor anyhow (and...
[wxWidgets.git] / contrib / src / stc / stc.h.in
index 6999efae4ee851fde5a43049eee124bb71f7f698..9ea0102760f2341431c5064f0a97505c4a13a638 100644 (file)
 #endif // SWIG
 
 
+// SWIG can't handle "#if" type of conditionals, only "#ifdef"
+#ifdef SWIG
+#define STC_USE_DND 1
+#else
+#if wxUSE_DRAG_AND_DROP
+#define STC_USE_DND 1
+#endif
+#endif
+
 //----------------------------------------------------------------------
 
 // Should a wxPopupWindow be used for the call tips and autocomplete windows?
@@ -191,12 +200,14 @@ public:
     // Load the contents of filename into the editor
     bool LoadFile(const wxString& filename);
 
+#ifdef STC_USE_DND
     // Allow for simulating a DnD DragOver
     wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def); 
 
     // Allow for simulating a DnD DropText
     bool DoDropText(long x, long y, const wxString& data);
+#endif
+
 
 
 //----------------------------------------------------------------------
@@ -249,15 +260,6 @@ protected:
 
 //----------------------------------------------------------------------
 
-// SWIG can't handle "#if" type of conditionals, only "#ifdef"
-#ifdef SWIG
-#define STC_USE_DND 1
-#else
-#if wxUSE_DRAG_AND_DROP
-#define STC_USE_DND 1
-#endif
-#endif
-
 #ifndef SWIG
 class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
 #else