]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/listctrl.h
*** empty log message ***
[wxWidgets.git] / include / wx / listctrl.h
index 0c394197279c57a778701dcc6c009f847aed0b10..89f8a5ab53a11a5f2ddc72fdf1a8de825a30987b 100644 (file)
@@ -16,7 +16,7 @@
 #elif defined(__WXMAC__)
 #include "wx/generic/listctrl.h"
 #elif defined(__WXPM__)
-#include "wx/generic/listctrl.h"
+#include "wx/os2/listctrl.h"
 #elif defined(__WXSTUBS__)
 #include "wx/generic/listctrl.h"
 #endif
@@ -38,7 +38,7 @@ public:
     wxPoint       m_pointDrag;
 
     wxListItem    m_item;
-    
+
     inline int GetCode() { return m_code; }
     inline long GetIndex() { return m_itemIndex; }
     inline long GetOldIndex() { return m_oldItemIndex; }
@@ -73,6 +73,8 @@ typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&);
 #define EVT_LIST_KEY_DOWN(id, fn) { wxEVT_COMMAND_LIST_KEY_DOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
 #define EVT_LIST_INSERT_ITEM(id, fn) { wxEVT_COMMAND_LIST_INSERT_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
 #define EVT_LIST_COL_CLICK(id, fn) { wxEVT_COMMAND_LIST_COL_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
+#define EVT_LIST_ITEM_RIGHT_CLICK(id, fn) { wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL },
+#define EVT_LIST_ITEM_MIDDLE_CLICK(id, fn) { wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL },
 #define EVT_LIST_ITEM_ACTIVATED(id, fn) { wxEVT_COMMAND_LIST_ITEM_ACTIVATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL },
 
 #endif