]> git.saurik.com Git - wxWidgets.git/commitdiff
part of the previous patch
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Nov 2000 19:21:59 +0000 (19:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Nov 2000 19:21:59 +0000 (19:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/treebase.h

index 4d9320be93098ab53ffaa1f284de363e15b61ff2..28557edb66ce3bab46415cb5499a0e94da205bd7 100644 (file)
@@ -20,6 +20,8 @@
 // headers
 // ----------------------------------------------------------------------------
 
+#if wxUSE_TREECTRL
+
 #include "wx/control.h"
 #include "wx/event.h"
 
@@ -204,7 +206,7 @@ public:
     wxTreeItemId GetOldItem() const { return m_itemOld; }
 
         // the point where the mouse was when the drag operation started (for
-        // wxEVT_COMMAND_TREE_BEGIN_(R)DRAG events only)
+        // wxEVT_COMMAND_TREE_BEGIN_(R)DRAG events only) or click position
     wxPoint GetPoint() const { return m_pointDrag; }
 
         // keyboard code (for wxEVT_COMMAND_TREE_KEY_DOWN only)
@@ -280,6 +282,8 @@ typedef void (wxEvtHandler::*wxTreeEventFunction)(wxTreeEvent&);
 #define EVT_TREE_ITEM_RIGHT_CLICK(id, fn) { wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
 #define EVT_TREE_ITEM_MIDDLE_CLICK(id, fn) { wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
 
+#endif // wxUSE_TREECTRL
+
 #endif
     // _WX_TREEBASE_H_