]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/treectrl.h
Removed unused code
[wxWidgets.git] / include / wx / treectrl.h
index 631c3393acc64c4449f1643b60195cd87309802f..cacdbe2dc3eab448358f9fd0eded5b885b5b9ec6 100644 (file)
@@ -62,11 +62,7 @@ enum wxTreeItemIcon
 
 class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent
 {
-#ifdef __MWERKS__
-    friend class wxTreeCtrl;
-#else
-    friend wxTreeCtrl;
-#endif
+    friend class WXDLLEXPORT wxTreeCtrl;
 
 public:
     wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
@@ -146,5 +142,11 @@ typedef void (wxEvtHandler::*wxTreeEventFunction)(wxTreeEvent&);
 // GetItem() returns the item that was activated (double click, enter, space)
 #define EVT_TREE_ITEM_ACTIVATED(id, fn) { wxEVT_COMMAND_TREE_ITEM_ACTIVATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
 
+// GetItem() returns the item that was clicked on
+#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
     // _WX_TREECTRL_H_BASE_
+
+