]> git.saurik.com Git - wxWidgets.git/blob - include/wx/listbase.h
removed duplicated code from dynlib.h and dynload.h
[wxWidgets.git] / include / wx / listbase.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/listctrl.h
3 // Purpose: wxListCtrl class
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 04.12.99
7 // RCS-ID: $Id$
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_LISTBASE_H_BASE_
13 #define _WX_LISTBASE_H_BASE_
14
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 // #pragma interface "listctrlbase.h"
17 #endif
18
19 #if wxUSE_LISTCTRL
20
21 #include "wx/font.h"
22
23 // ----------------------------------------------------------------------------
24 // types
25 // ----------------------------------------------------------------------------
26
27 // type of compare function for wxListCtrl sort operation
28 typedef int (wxCALLBACK *wxListCtrlCompare)(long item1, long item2, long sortData);
29
30 // ----------------------------------------------------------------------------
31 // wxListCtrl constants
32 // ----------------------------------------------------------------------------
33
34 // style flags
35 #define wxLC_VRULES 0x0001
36 #define wxLC_HRULES 0x0002
37
38 #define wxLC_ICON 0x0004
39 #define wxLC_SMALL_ICON 0x0008
40 #define wxLC_LIST 0x0010
41 #define wxLC_REPORT 0x0020
42
43 #define wxLC_ALIGN_TOP 0x0040
44 #define wxLC_ALIGN_LEFT 0x0080
45 #define wxLC_AUTOARRANGE 0x0100
46 #define wxLC_VIRTUAL 0x0200
47 #define wxLC_EDIT_LABELS 0x0400
48 #define wxLC_NO_HEADER 0x0800
49 #define wxLC_NO_SORT_HEADER 0x1000
50 #define wxLC_SINGLE_SEL 0x2000
51 #define wxLC_SORT_ASCENDING 0x4000
52 #define wxLC_SORT_DESCENDING 0x8000
53
54 #define wxLC_MASK_TYPE (wxLC_ICON | wxLC_SMALL_ICON | wxLC_LIST | wxLC_REPORT)
55 #define wxLC_MASK_ALIGN (wxLC_ALIGN_TOP | wxLC_ALIGN_LEFT)
56 #define wxLC_MASK_SORT (wxLC_SORT_ASCENDING | wxLC_SORT_DESCENDING)
57
58 // for compatibility only
59 #define wxLC_USER_TEXT wxLC_VIRTUAL
60
61 // Omitted because
62 // (a) too much detail
63 // (b) not enough style flags
64 // (c) not implemented anyhow in the generic version
65 //
66 // #define wxLC_NO_SCROLL
67 // #define wxLC_NO_LABEL_WRAP
68 // #define wxLC_OWNERDRAW_FIXED
69 // #define wxLC_SHOW_SEL_ALWAYS
70
71 // Mask flags to tell app/GUI what fields of wxListItem are valid
72 #define wxLIST_MASK_STATE 0x0001
73 #define wxLIST_MASK_TEXT 0x0002
74 #define wxLIST_MASK_IMAGE 0x0004
75 #define wxLIST_MASK_DATA 0x0008
76 #define wxLIST_SET_ITEM 0x0010
77 #define wxLIST_MASK_WIDTH 0x0020
78 #define wxLIST_MASK_FORMAT 0x0040
79
80 // State flags for indicating the state of an item
81 #define wxLIST_STATE_DONTCARE 0x0000
82 #define wxLIST_STATE_DROPHILITED 0x0001 // MSW only
83 #define wxLIST_STATE_FOCUSED 0x0002
84 #define wxLIST_STATE_SELECTED 0x0004
85 #define wxLIST_STATE_CUT 0x0008 // MSW only
86 #define wxLIST_STATE_DISABLED 0x0010 // OS2 only
87 #define wxLIST_STATE_FILTERED 0x0020 // OS2 only
88 #define wxLIST_STATE_INUSE 0x0040 // OS2 only
89 #define wxLIST_STATE_PICKED 0x0080 // OS2 only
90 #define wxLIST_STATE_SOURCE 0x0100 // OS2 only
91
92 // Hit test flags, used in HitTest
93 #define wxLIST_HITTEST_ABOVE 0x0001 // Above the client area.
94 #define wxLIST_HITTEST_BELOW 0x0002 // Below the client area.
95 #define wxLIST_HITTEST_NOWHERE 0x0004 // In the client area but below the last item.
96 #define wxLIST_HITTEST_ONITEMICON 0x0020 // On the bitmap associated with an item.
97 #define wxLIST_HITTEST_ONITEMLABEL 0x0080 // On the label (string) associated with an item.
98 #define wxLIST_HITTEST_ONITEMRIGHT 0x0100 // In the area to the right of an item.
99 #define wxLIST_HITTEST_ONITEMSTATEICON 0x0200 // On the state icon for a tree view item that is in a user-defined state.
100 #define wxLIST_HITTEST_TOLEFT 0x0400 // To the left of the client area.
101 #define wxLIST_HITTEST_TORIGHT 0x0800 // To the right of the client area.
102
103 #define wxLIST_HITTEST_ONITEM (wxLIST_HITTEST_ONITEMICON | wxLIST_HITTEST_ONITEMLABEL | wxLIST_HITTEST_ONITEMSTATEICON)
104
105 // Flags for GetNextItem (MSW only except wxLIST_NEXT_ALL)
106 enum
107 {
108 wxLIST_NEXT_ABOVE, // Searches for an item above the specified item
109 wxLIST_NEXT_ALL, // Searches for subsequent item by index
110 wxLIST_NEXT_BELOW, // Searches for an item below the specified item
111 wxLIST_NEXT_LEFT, // Searches for an item to the left of the specified item
112 wxLIST_NEXT_RIGHT // Searches for an item to the right of the specified item
113 };
114
115 // Alignment flags for Arrange (MSW only except wxLIST_ALIGN_LEFT)
116 enum
117 {
118 wxLIST_ALIGN_DEFAULT,
119 wxLIST_ALIGN_LEFT,
120 wxLIST_ALIGN_TOP,
121 wxLIST_ALIGN_SNAP_TO_GRID
122 };
123
124 // Column format (MSW only except wxLIST_FORMAT_LEFT)
125 enum wxListColumnFormat
126 {
127 wxLIST_FORMAT_LEFT,
128 wxLIST_FORMAT_RIGHT,
129 wxLIST_FORMAT_CENTRE,
130 wxLIST_FORMAT_CENTER = wxLIST_FORMAT_CENTRE
131 };
132
133 // Autosize values for SetColumnWidth
134 enum
135 {
136 wxLIST_AUTOSIZE = -1,
137 wxLIST_AUTOSIZE_USEHEADER = -2 // partly supported by generic version
138 };
139
140 // Flag values for GetItemRect
141 enum
142 {
143 wxLIST_RECT_BOUNDS,
144 wxLIST_RECT_ICON,
145 wxLIST_RECT_LABEL
146 };
147
148 // Flag values for FindItem (MSW only)
149 enum
150 {
151 wxLIST_FIND_UP,
152 wxLIST_FIND_DOWN,
153 wxLIST_FIND_LEFT,
154 wxLIST_FIND_RIGHT
155 };
156
157 // ----------------------------------------------------------------------------
158 // wxListItemAttr: a structure containing the visual attributes of an item
159 // ----------------------------------------------------------------------------
160
161 class WXDLLEXPORT wxListItemAttr
162 {
163 public:
164 // ctors
165 wxListItemAttr() { }
166 wxListItemAttr(const wxColour& colText,
167 const wxColour& colBack,
168 const wxFont& font)
169 : m_colText(colText), m_colBack(colBack), m_font(font) { }
170
171 // setters
172 void SetTextColour(const wxColour& colText) { m_colText = colText; }
173 void SetBackgroundColour(const wxColour& colBack) { m_colBack = colBack; }
174 void SetFont(const wxFont& font) { m_font = font; }
175
176 // accessors
177 bool HasTextColour() const { return m_colText.Ok(); }
178 bool HasBackgroundColour() const { return m_colBack.Ok(); }
179 bool HasFont() const { return m_font.Ok(); }
180
181 const wxColour& GetTextColour() const { return m_colText; }
182 const wxColour& GetBackgroundColour() const { return m_colBack; }
183 const wxFont& GetFont() const { return m_font; }
184
185 private:
186 wxColour m_colText,
187 m_colBack;
188 wxFont m_font;
189 };
190
191 // ----------------------------------------------------------------------------
192 // wxListItem: the item or column info, used to exchange data with wxListCtrl
193 // ----------------------------------------------------------------------------
194
195 class WXDLLEXPORT wxListItem : public wxObject
196 {
197 public:
198 wxListItem() { Init(); m_attr = NULL; }
199 wxListItem(const wxListItem& item)
200 : wxObject(),
201 m_mask(item.m_mask),
202 m_itemId(item.m_itemId),
203 m_col(item.m_col),
204 m_state(item.m_state),
205 m_stateMask(item.m_stateMask),
206 m_text(item.m_text),
207 m_image(item.m_image),
208 m_data(item.m_data),
209 m_format(item.m_format),
210 m_width(item.m_width),
211 m_attr(NULL)
212 {
213 // copy list item attributes
214 if( item.HasAttributes() )
215 m_attr = new wxListItemAttr(*item.GetAttributes());
216 }
217 virtual ~wxListItem() { delete m_attr; }
218
219 // resetting
220 void Clear() { Init(); m_text.clear(); ClearAttributes(); }
221 void ClearAttributes() { if ( m_attr ) { delete m_attr; m_attr = NULL; } }
222
223 // setters
224 void SetMask(long mask)
225 { m_mask = mask; }
226 void SetId(long id)
227 { m_itemId = id; }
228 void SetColumn(int col)
229 { m_col = col; }
230 void SetState(long state)
231 { m_mask |= wxLIST_MASK_STATE; m_state = state; m_stateMask |= state; }
232 void SetStateMask(long stateMask)
233 { m_stateMask = stateMask; }
234 void SetText(const wxString& text)
235 { m_mask |= wxLIST_MASK_TEXT; m_text = text; }
236 void SetImage(int image)
237 { m_mask |= wxLIST_MASK_IMAGE; m_image = image; }
238 void SetData(long data)
239 { m_mask |= wxLIST_MASK_DATA; m_data = data; }
240 void SetData(void *data)
241 { m_mask |= wxLIST_MASK_DATA; m_data = (long)data; }
242
243 void SetWidth(int width)
244 { m_mask |= wxLIST_MASK_WIDTH; m_width = width; }
245 void SetAlign(wxListColumnFormat align)
246 { m_mask |= wxLIST_MASK_FORMAT; m_format = align; }
247
248 void SetTextColour(const wxColour& colText)
249 { Attributes().SetTextColour(colText); }
250 void SetBackgroundColour(const wxColour& colBack)
251 { Attributes().SetBackgroundColour(colBack); }
252 void SetFont(const wxFont& font)
253 { Attributes().SetFont(font); }
254
255 // accessors
256 long GetMask() const { return m_mask; }
257 long GetId() const { return m_itemId; }
258 int GetColumn() const { return m_col; }
259 long GetState() const { return m_state & m_stateMask; }
260 const wxString& GetText() const { return m_text; }
261 int GetImage() const { return m_image; }
262 long GetData() const { return m_data; }
263
264 int GetWidth() const { return m_width; }
265 wxListColumnFormat GetAlign() const { return (wxListColumnFormat)m_format; }
266
267 wxListItemAttr *GetAttributes() const { return m_attr; }
268 bool HasAttributes() const { return m_attr != NULL; }
269
270 wxColour GetTextColour() const
271 { return HasAttributes() ? m_attr->GetTextColour() : wxNullColour; }
272 wxColour GetBackgroundColour() const
273 { return HasAttributes() ? m_attr->GetBackgroundColour()
274 : wxNullColour; }
275 wxFont GetFont() const
276 { return HasAttributes() ? m_attr->GetFont() : wxNullFont; }
277
278 // this conversion is necessary to make old code using GetItem() to
279 // compile
280 operator long() const { return m_itemId; }
281
282 // these members are public for compatibility
283
284 long m_mask; // Indicates what fields are valid
285 long m_itemId; // The zero-based item position
286 int m_col; // Zero-based column, if in report mode
287 long m_state; // The state of the item
288 long m_stateMask;// Which flags of m_state are valid (uses same flags)
289 wxString m_text; // The label/header text
290 int m_image; // The zero-based index into an image list
291 long m_data; // App-defined data
292
293 // For columns only
294 int m_format; // left, right, centre
295 int m_width; // width of column
296
297 #ifdef __WXPM__
298 int m_miniImage; // handle to the mini image for OS/2
299 #endif
300
301 protected:
302 // creates m_attr if we don't have it yet
303 wxListItemAttr& Attributes()
304 {
305 if ( !m_attr )
306 m_attr = new wxListItemAttr;
307
308 return *m_attr;
309 }
310
311 void Init()
312 {
313 m_mask = 0;
314 m_itemId = 0;
315 m_col = 0;
316 m_state = 0;
317 m_stateMask = 0;
318 m_image = 0;
319 m_data = 0;
320
321 m_format = wxLIST_FORMAT_CENTRE;
322 m_width = 0;
323 }
324
325 wxListItemAttr *m_attr; // optional pointer to the items style
326
327 private:
328 // VZ: this is strange, we have a copy ctor but not operator=(), why?
329 wxListItem& operator=(const wxListItem& item);
330
331 DECLARE_DYNAMIC_CLASS(wxListItem)
332 };
333
334 // ----------------------------------------------------------------------------
335 // wxListEvent - the event class for the wxListCtrl notifications
336 // ----------------------------------------------------------------------------
337
338 class WXDLLEXPORT wxListEvent : public wxNotifyEvent
339 {
340 public:
341 wxListEvent(wxEventType commandType = wxEVT_NULL, int id = 0)
342 : wxNotifyEvent(commandType, id)
343 , m_code(0)
344 , m_oldItemIndex(0)
345 , m_itemIndex(0)
346 , m_col(0)
347 , m_pointDrag()
348 , m_item()
349 { }
350
351 wxListEvent(const wxListEvent& event)
352 : wxNotifyEvent(event)
353 , m_code(event.m_code)
354 , m_oldItemIndex(event.m_oldItemIndex)
355 , m_itemIndex(event.m_itemIndex)
356 , m_col(event.m_col)
357 , m_pointDrag(event.m_pointDrag)
358 , m_item(event.m_item)
359 { }
360
361 int GetKeyCode() const { return m_code; }
362 long GetIndex() const { return m_itemIndex; }
363 int GetColumn() const { return m_col; }
364 wxPoint GetPoint() const { return m_pointDrag; }
365 const wxString& GetLabel() const { return m_item.m_text; }
366 const wxString& GetText() const { return m_item.m_text; }
367 int GetImage() const { return m_item.m_image; }
368 long GetData() const { return m_item.m_data; }
369 long GetMask() const { return m_item.m_mask; }
370 const wxListItem& GetItem() const { return m_item; }
371
372 // for wxEVT_COMMAND_LIST_CACHE_HINT only
373 long GetCacheFrom() const { return m_oldItemIndex; }
374 long GetCacheTo() const { return m_itemIndex; }
375
376 #if WXWIN_COMPATIBILITY_2_2
377 // these methods don't do anything at all
378 long GetOldIndex() const { return 0; }
379 long GetOldItem() const { return 0; }
380
381 // this one is superseded by GetKeyCode()
382 int GetCode() const { return GetKeyCode(); }
383 #endif // WXWIN_COMPATIBILITY_2_2
384
385 virtual wxEvent *Clone() const { return new wxListEvent(*this); }
386
387 //protected: -- not for backwards compatibility
388 int m_code;
389 long m_oldItemIndex; // only for wxEVT_COMMAND_LIST_CACHE_HINT
390 long m_itemIndex;
391 int m_col;
392 wxPoint m_pointDrag;
393
394 wxListItem m_item;
395
396 private:
397 DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxListEvent)
398 };
399
400 // ----------------------------------------------------------------------------
401 // wxListCtrl event macros
402 // ----------------------------------------------------------------------------
403
404 BEGIN_DECLARE_EVENT_TYPES()
405 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_BEGIN_DRAG, 700)
406 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_BEGIN_RDRAG, 701)
407 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 702)
408 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_END_LABEL_EDIT, 703)
409 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_DELETE_ITEM, 704)
410 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 705)
411 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_GET_INFO, 706)
412 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_SET_INFO, 707)
413 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_SELECTED, 708)
414 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_DESELECTED, 709)
415 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_KEY_DOWN, 710)
416 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_INSERT_ITEM, 711)
417 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_CLICK, 712)
418 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 713)
419 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 714)
420 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 715)
421 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_CACHE_HINT, 716)
422 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 717)
423 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 718)
424 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_DRAGGING, 719)
425 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_END_DRAG, 720)
426 DECLARE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_FOCUSED, 721)
427 END_DECLARE_EVENT_TYPES()
428
429 typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&);
430
431 #define EVT_LIST_BEGIN_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_BEGIN_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
432 #define EVT_LIST_BEGIN_RDRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_BEGIN_RDRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
433 #define EVT_LIST_BEGIN_LABEL_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
434 #define EVT_LIST_END_LABEL_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_END_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
435 #define EVT_LIST_DELETE_ITEM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_DELETE_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
436 #define EVT_LIST_DELETE_ALL_ITEMS(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
437 #define EVT_LIST_GET_INFO(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_GET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
438 #define EVT_LIST_SET_INFO(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_SET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
439 #define EVT_LIST_KEY_DOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_KEY_DOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
440 #define EVT_LIST_INSERT_ITEM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_INSERT_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
441
442 #define EVT_LIST_COL_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_COL_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
443 #define EVT_LIST_COL_RIGHT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
444 #define EVT_LIST_COL_BEGIN_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
445 #define EVT_LIST_COL_DRAGGING(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_COL_DRAGGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
446 #define EVT_LIST_COL_END_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_COL_END_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
447
448 #define EVT_LIST_ITEM_SELECTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_ITEM_SELECTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
449 #define EVT_LIST_ITEM_DESELECTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_ITEM_DESELECTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL ),
450 #define EVT_LIST_ITEM_RIGHT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL ),
451 #define EVT_LIST_ITEM_MIDDLE_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL ),
452 #define EVT_LIST_ITEM_ACTIVATED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL ),
453 #define EVT_LIST_ITEM_FOCUSED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_ITEM_FOCUSED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL ),
454
455 #define EVT_LIST_CACHE_HINT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_LIST_CACHE_HINT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL ),
456
457 #endif // wxUSE_LISTCTRL
458
459 #endif
460 // _WX_LISTCTRL_H_BASE_