1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Generic list control
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __LISTCTRLH_G__
12 #define __LISTCTRLH_G__
15 #pragma interface "listctrl.h"
19 #include "wx/object.h"
20 #include "wx/imaglist.h"
21 #include "wx/control.h"
23 #include "wx/dcclient.h"
24 #include "wx/scrolwin.h"
25 #include "wx/settings.h"
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxListHeaderData
;
43 class wxListHeaderWindow
;
44 class wxListMainWindow
;
46 class wxListRenameTimer
;
47 //class wxListTextCtrl;
49 //-----------------------------------------------------------------------------
51 //-----------------------------------------------------------------------------
53 // type of compare function for wxListCtrl sort operation
54 typedef int (*wxListCtrlCompare
)(long item1
, long item2
, long sortData
);
56 //-----------------------------------------------------------------------------
58 //-----------------------------------------------------------------------------
60 #define wxLC_ICON 0x0004
61 #define wxLC_SMALL_ICON 0x0008
62 #define wxLC_LIST 0x0010
63 #define wxLC_REPORT 0x0020
64 #define wxLC_ALIGN_TOP 0x0040
65 #define wxLC_ALIGN_LEFT 0x0080
66 #define wxLC_AUTOARRANGE 0x0100 // not supported in wxGLC
67 #define wxLC_USER_TEXT 0x0200 // not supported in wxGLC (how does it work?)
68 #define wxLC_EDIT_LABELS 0x0400
69 #define wxLC_NO_HEADER 0x0800 // not supported in wxGLC
70 #define wxLC_NO_SORT_HEADER 0x1000 // not supported in wxGLC
71 #define wxLC_SINGLE_SEL 0x2000
72 #define wxLC_SORT_ASCENDING 0x4000
73 #define wxLC_SORT_DESCENDING 0x8000 // not supported in wxGLC
75 #define wxLC_MASK_TYPE (wxLC_ICON | wxLC_SMALL_ICON | wxLC_LIST | wxLC_REPORT)
76 #define wxLC_MASK_ALIGN (wxLC_ALIGN_TOP | wxLC_ALIGN_LEFT)
77 #define wxLC_MASK_SORT (wxLC_SORT_ASCENDING | wxLC_SORT_DESCENDING)
79 // Omitted because (a) too much detail (b) not enough style flags
80 // #define wxLC_NO_SCROLL
81 // #define wxLC_NO_LABEL_WRAP
82 // #define wxLC_OWNERDRAW_FIXED
83 // #define wxLC_SHOW_SEL_ALWAYS
85 // Mask flags to tell app/GUI what fields of wxListItem are valid
86 #define wxLIST_MASK_STATE 0x0001
87 #define wxLIST_MASK_TEXT 0x0002
88 #define wxLIST_MASK_IMAGE 0x0004
89 #define wxLIST_MASK_DATA 0x0008
90 #define wxLIST_SET_ITEM 0x0010
91 #define wxLIST_MASK_WIDTH 0x0020
92 #define wxLIST_MASK_FORMAT 0x0040
94 // State flags for indicating the state of an item
95 #define wxLIST_STATE_DONTCARE 0x0000
96 #define wxLIST_STATE_DROPHILITED 0x0001 // not supported in wxGLC
97 #define wxLIST_STATE_FOCUSED 0x0002
98 #define wxLIST_STATE_SELECTED 0x0004
99 #define wxLIST_STATE_CUT 0x0008 // not supported in wxGLC
101 // Hit test flags, used in HitTest // wxGLC suppots 20 and 80
102 #define wxLIST_HITTEST_ABOVE 0x0001 // Above the client area.
103 #define wxLIST_HITTEST_BELOW 0x0002 // Below the client area.
104 #define wxLIST_HITTEST_NOWHERE 0x0004 // In the client area but below the last item.
105 #define wxLIST_HITTEST_ONITEMICON 0x0020 // On the bitmap associated with an item.
106 #define wxLIST_HITTEST_ONITEMLABEL 0x0080 // On the label (string) associated with an item.
107 #define wxLIST_HITTEST_ONITEMRIGHT 0x0100 // In the area to the right of an item.
108 #define wxLIST_HITTEST_ONITEMSTATEICON 0x0200 // On the state icon for a tree view item that is in a user-defined state.
109 #define wxLIST_HITTEST_TOLEFT 0x0400 // To the right of the client area.
110 #define wxLIST_HITTEST_TORIGHT 0x0800 // To the left of the client area.
112 #define wxLIST_HITTEST_ONITEM (wxLIST_HITTEST_ONITEMICON | wxLIST_HITTEST_ONITEMLABEL | wxLIST_HITTEST_ONITEMSTATEICON)
116 // Flags for GetNextItem // always wxLIST_NEXT_ALL in wxGLC
118 wxLIST_NEXT_ABOVE
, // Searches for an item above the specified item
119 wxLIST_NEXT_ALL
, // Searches for subsequent item by index
120 wxLIST_NEXT_BELOW
, // Searches for an item below the specified item
121 wxLIST_NEXT_LEFT
, // Searches for an item to the left of the specified item
122 wxLIST_NEXT_RIGHT
// Searches for an item to the right of the specified item
125 // Alignment flags for Arrange // always wxLIST_ALIGN_LEFT in wxGLC
127 wxLIST_ALIGN_DEFAULT
,
130 wxLIST_ALIGN_SNAP_TO_GRID
133 // Column format // always wxLIST_FORMAT_LEFT in wxGLC
137 wxLIST_FORMAT_CENTRE
,
138 wxLIST_FORMAT_CENTER
= wxLIST_FORMAT_CENTRE
141 // Autosize values for SetColumnWidth
143 wxLIST_AUTOSIZE
= -1, // always 80 in wxGLC (what else?)
144 wxLIST_AUTOSIZE_USEHEADER
= -2
147 // Flag values for GetItemRect
154 // Flag values for FindItem // not supported by wxGLC
162 //-----------------------------------------------------------------------------
164 //-----------------------------------------------------------------------------
166 class wxListItem
: public wxObject
168 DECLARE_DYNAMIC_CLASS(wxListItem
)
171 long m_mask
; // Indicates what fields are valid
172 long m_itemId
; // The zero-based item position
173 int m_col
; // Zero-based column, if in report mode
174 long m_state
; // The state of the item
175 long m_stateMask
; // Which flags of m_state are valid (uses same flags)
176 wxString m_text
; // The label/header text
177 int m_image
; // The zero-based index into an image list
178 long m_data
; // App-defined data
179 wxColour
*m_colour
; // only wxGLC, not supported by Windows ;->
182 int m_format
; // left, right, centre
183 int m_width
; // width of column
188 //-----------------------------------------------------------------------------
190 //-----------------------------------------------------------------------------
192 class WXDLLEXPORT wxListEvent
: public wxCommandEvent
194 DECLARE_DYNAMIC_CLASS(wxListEvent
)
197 wxListEvent(wxEventType commandType
= wxEVT_NULL
, int id
= 0);
209 typedef void (wxEvtHandler::*wxListEventFunction
)(wxListEvent
&);
211 #define EVT_LIST_BEGIN_DRAG(id, fn) { wxEVT_COMMAND_LIST_BEGIN_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
212 #define EVT_LIST_BEGIN_RDRAG(id, fn) { wxEVT_COMMAND_LIST_BEGIN_RDRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
213 #define EVT_LIST_BEGIN_LABEL_EDIT(id, fn) { wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
214 #define EVT_LIST_END_LABEL_EDIT(id, fn) { wxEVT_COMMAND_LIST_END_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
215 #define EVT_LIST_DELETE_ITEM(id, fn) { wxEVT_COMMAND_LIST_DELETE_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
216 #define EVT_LIST_DELETE_ALL_ITEMS(id, fn) { wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
217 #define EVT_LIST_GET_INFO(id, fn) { wxEVT_COMMAND_LIST_GET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
218 #define EVT_LIST_SET_INFO(id, fn) { wxEVT_COMMAND_LIST_SET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
219 #define EVT_LIST_ITEM_SELECTED(id, fn) { wxEVT_COMMAND_LIST_ITEM_SELECTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
220 #define EVT_LIST_ITEM_DESELECTED(id, fn) { wxEVT_COMMAND_LIST_ITEM_DESELECTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
221 #define EVT_LIST_KEY_DOWN(id, fn) { wxEVT_COMMAND_LIST_KEY_DOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
222 #define EVT_LIST_INSERT_ITEM(id, fn) { wxEVT_COMMAND_LIST_INSERT_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
223 #define EVT_LIST_COL_CLICK(id, fn) { wxEVT_COMMAND_LIST_COL_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL },
226 //-----------------------------------------------------------------------------
227 // wxListItemData (internal)
228 //-----------------------------------------------------------------------------
230 class wxListItemData
: public wxObject
232 DECLARE_DYNAMIC_CLASS(wxListItemData
);
239 int m_width
,m_height
;
243 wxListItemData(void);
244 wxListItemData( const wxListItem
&info
);
245 void SetItem( const wxListItem
&info
);
246 void SetText( const wxString
&s
);
247 void SetImage( int image
);
248 void SetData( long data
);
249 void SetPosition( int x
, int y
);
250 void SetSize( int width
, int height
);
251 void SetColour( wxColour
*col
);
252 bool HasImage(void) const;
253 bool HasText(void) const;
254 bool IsHit( int x
, int y
) const;
255 void GetText( wxString
&s
);
256 int GetX( void ) const;
257 int GetY( void ) const;
258 int GetWidth(void) const;
259 int GetHeight(void) const;
260 int GetImage(void) const;
261 void GetItem( wxListItem
&info
);
262 wxColour
*GetColour(void);
265 //-----------------------------------------------------------------------------
266 // wxListHeaderData (internal)
267 //-----------------------------------------------------------------------------
269 class wxListHeaderData
: public wxObject
271 DECLARE_DYNAMIC_CLASS(wxListHeaderData
);
283 wxListHeaderData(void);
284 wxListHeaderData( const wxListItem
&info
);
285 void SetItem( const wxListItem
&item
);
286 void SetPosition( int x
, int y
);
287 void SetWidth( int w
);
288 void SetFormat( int format
);
289 void SetHeight( int h
);
290 bool HasImage(void) const;
291 bool HasText(void) const;
292 bool IsHit( int x
, int y
) const;
293 void GetItem( wxListItem
&item
);
294 void GetText( wxString
&s
);
295 int GetImage(void) const;
296 int GetWidth(void) const;
297 int GetFormat(void) const;
300 //-----------------------------------------------------------------------------
301 // wxListLineData (internal)
302 //-----------------------------------------------------------------------------
304 class wxListLineData
: public wxObject
306 DECLARE_DYNAMIC_CLASS(wxListLineData
);
310 wxRectangle m_bound_all
;
311 wxRectangle m_bound_label
;
312 wxRectangle m_bound_icon
;
313 wxRectangle m_bound_hilight
;
316 wxBrush
*m_hilightBrush
;
318 wxListMainWindow
*m_owner
;
320 void DoDraw( wxPaintDC
*dc
, bool hilight
, bool paintBG
);
323 wxListLineData( void ) {};
324 wxListLineData( wxListMainWindow
*owner
, int mode
, wxBrush
*hilightBrush
);
325 void CalculateSize( wxPaintDC
*dc
, int spacing
);
326 void SetPosition( wxPaintDC
*dc
, int x
, int y
, int window_width
);
327 void SetColumnPosition( int index
, int x
);
328 void GetSize( int &width
, int &height
);
329 void GetExtent( int &x
, int &y
, int &width
, int &height
);
330 void GetLabelExtent( int &x
, int &y
, int &width
, int &height
);
331 long IsHit( int x
, int y
);
332 void InitItems( int num
);
333 void SetItem( int index
, const wxListItem
&info
);
334 void GetItem( int index
, wxListItem
&info
);
335 void GetText( int index
, wxString
&s
);
336 void SetText( int index
, const wxString s
);
337 int GetImage( int index
);
338 void GetRect( wxRectangle
&rect
);
339 void Hilight( bool on
);
340 void ReverseHilight( void );
341 void DrawRubberBand( wxPaintDC
*dc
, bool on
);
342 void Draw( wxPaintDC
*dc
);
343 bool IsInRect( int x
, int y
, const wxRectangle
&rect
);
344 bool IsHilighted( void );
345 void AssignRect( wxRectangle
&dest
, int x
, int y
, int width
, int height
);
346 void AssignRect( wxRectangle
&dest
, const wxRectangle
&source
);
349 //-----------------------------------------------------------------------------
350 // wxListHeaderWindow (internal)
351 //-----------------------------------------------------------------------------
353 class wxListHeaderWindow
: public wxWindow
355 DECLARE_DYNAMIC_CLASS(wxListHeaderWindow
)
358 wxListMainWindow
*m_owner
;
359 wxCursor
*m_currentCursor
;
360 wxCursor
*m_resizeCursor
;
363 wxListHeaderWindow( void );
364 wxListHeaderWindow( wxWindow
*win
, wxWindowID id
, wxListMainWindow
*owner
,
365 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
366 long style
= 0, const wxString
&name
= "columntitles" );
367 void DoDrawRect( wxPaintDC
*dc
, int x
, int y
, int w
, int h
);
368 void OnPaint( wxPaintEvent
&event
);
369 void OnMouse( wxMouseEvent
&event
);
370 void OnSetFocus( wxFocusEvent
&event
);
372 DECLARE_EVENT_TABLE()
375 //-----------------------------------------------------------------------------
376 // wxListRenameTimer (internal)
377 //-----------------------------------------------------------------------------
379 class wxListRenameTimer
: public wxTimer
382 wxListMainWindow
*m_owner
;
385 wxListRenameTimer( wxListMainWindow
*owner
);
391 //-----------------------------------------------------------------------------
392 // wxListTextCtrl (internal)
393 //-----------------------------------------------------------------------------
395 class wxListTextCtrl: public wxTextCtrl
397 DECLARE_DYNAMIC_CLASS(wxListTextCtrl);
402 wxListMainWindow *m_owner;
405 wxListTextCtrl(void) : wxTextCtrl() {};
406 wxListTextCtrl( wxWindow *parent, const char *value = "",
407 bool *accept, wxString *res, wxListMainWindow *owner,
408 int x = -1, int y = -1, int w = -1, int h = -1, int style = 0, char *name = "rawtext" ) :
409 wxTextCtrl( parent, value, x, y, w, h, style, name )
415 void OnChar( wxKeyEvent &event )
417 if (event.keyCode == WXK_RETURN)
420 (*m_res) = GetValue();
421 m_owner->OnRenameAccept();
426 if (event.keyCode == WXK_ESCAPE)
435 void OnKillFocus(void)
447 //-----------------------------------------------------------------------------
448 // wxListMainWindow (internal)
449 //-----------------------------------------------------------------------------
451 class wxListMainWindow
: public wxScrolledWindow
453 DECLARE_DYNAMIC_CLASS(wxListMainWindow
);
459 wxListLineData
*m_current
;
461 wxBrush
*m_hilightBrush
;
462 wxColour
*m_hilightColour
;
464 int m_xScroll
,m_yScroll
;
466 wxImageList
*m_small_image_list
;
467 wxImageList
*m_normal_image_list
;
469 int m_normal_spacing
;
473 wxTimer
*m_renameTimer
;
474 // wxListTextCtrl *m_text;
476 wxString m_renameRes
;
481 wxListMainWindow(void);
482 wxListMainWindow( wxWindow
*parent
, wxWindowID id
,
483 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
484 long style
= 0, const wxString
&name
= "listctrl" );
485 ~wxListMainWindow(void);
486 void RefreshLine( wxListLineData
*line
);
487 void OnPaint( wxPaintEvent
&event
);
488 void HilightAll( bool on
);
489 void ActivateLine( wxListLineData
*line
);
490 void SendNotify( wxListLineData
*line
, wxEventType command
);
491 void FocusLine( wxListLineData
*line
);
492 void UnfocusLine( wxListLineData
*line
);
493 void SelectLine( wxListLineData
*line
);
494 void DeselectLine( wxListLineData
*line
);
495 void DeleteLine( wxListLineData
*line
);
496 void RenameLine( wxListLineData
*line
, const wxString
&newName
);
497 void OnRenameTimer(void);
498 void OnRenameAccept(void);
499 void OnMouse( wxMouseEvent
&event
);
500 void MoveToFocus( void );
501 void OnArrowChar( wxListLineData
*newCurrent
, bool shiftDown
);
502 void OnChar( wxKeyEvent
&event
);
503 void OnSetFocus( wxFocusEvent
&event
);
504 void OnKillFocus( wxFocusEvent
&event
);
505 void OnSize( wxSizeEvent
&event
);
506 wxFont
*GetMyFont( void );
507 void DrawImage( int index
, wxPaintDC
*dc
, int x
, int y
);
508 void GetImageSize( int index
, int &width
, int &height
);
509 int GetIndexOfLine( const wxListLineData
*line
);
510 int GetTextLength( wxString
&s
); // should be const
512 void SetImageList( wxImageList
*imageList
, int which
);
513 void SetItemSpacing( int spacing
, bool isSmall
= FALSE
);
514 int GetItemSpacing( bool isSmall
= FALSE
);
515 void SetColumn( int col
, wxListItem
&item
);
516 void SetColumnWidth( int col
, int width
);
517 void GetColumn( int col
, wxListItem
&item
);
518 int GetColumnWidth( int vol
);
519 int GetColumnCount( void );
520 int GetCountPerPage( void );
521 void SetItem( wxListItem
&item
);
522 void GetItem( wxListItem
&item
);
523 void SetItemState( long item
, long state
, long stateMask
);
524 int GetItemState( long item
, long stateMask
);
525 int GetItemCount( void );
526 void GetItemRect( long index
, wxRectangle
&rect
);
527 bool GetItemPosition(long item
, wxPoint
& pos
);
528 int GetSelectedItemCount( void );
529 void SetMode( long mode
);
530 long GetMode( void ) const;
531 void CalculatePositions( void );
532 void RealizeChanges(void);
533 long GetNextItem( long item
, int geometry
, int state
);
534 void DeleteItem( long index
);
535 void DeleteAllItems( void );
536 void DeleteColumn( int col
);
537 void DeleteEverything( void );
538 void EnsureVisible( long index
);
539 long FindItem(long start
, const wxString
& str
, bool partial
= FALSE
);
540 long FindItem(long start
, long data
);
541 long HitTest( int x
, int y
, int &flags
);
542 void InsertItem( wxListItem
&item
);
543 // void AddItem( wxListItem &item );
544 void InsertColumn( long col
, wxListItem
&item
);
545 // void AddColumn( wxListItem &item );
546 void SortItems( wxListCtrlCompare fn
, long data
);
547 virtual bool OnListNotify( wxListEvent
&event
);
549 DECLARE_EVENT_TABLE()
552 //-----------------------------------------------------------------------------
554 //-----------------------------------------------------------------------------
556 class wxListCtrl
: public wxControl
558 DECLARE_DYNAMIC_CLASS(wxListCtrl
);
563 wxListCtrl( wxWindow
*parent
, wxWindowID id
,
564 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
565 long style
= 0, const wxString
&name
= "listctrl" );
567 bool Create( wxWindow
*parent
, wxWindowID id
,
568 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
569 long style
= 0, const wxString
&name
= "listctrl" );
570 void OnSize( wxSizeEvent
&event
);
571 void SetBackgroundColour( const wxColour
& col
);
572 bool GetColumn( int col
, wxListItem
& item
);
573 bool SetColumn( int col
, wxListItem
& item
);
574 int GetColumnWidth( int col
);
575 bool SetColumnWidth( int col
, int width
);
576 int GetCountPerPage(void); // not the same in wxGLC as in Windows, I think
577 // wxText& GetEditControl(void) const; // not supported in wxGLC
578 bool GetItem( wxListItem
& info
);
579 bool SetItem( wxListItem
& info
) ;
580 long SetItem( long index
, int col
, const wxString
& label
, int imageId
= -1 );
581 int GetItemState( long item
, long stateMask
);
582 bool SetItemState( long item
, long state
, long stateMask
);
583 bool SetItemImage( long item
, int image
, int selImage
);
584 wxString
GetItemText( long item
);
585 void SetItemText( long item
, const wxString
& str
);
586 long GetItemData( long item
);
587 bool SetItemData( long item
, long data
);
588 bool GetItemRect( long item
, wxRectangle
& rect
, int code
= wxLIST_RECT_BOUNDS
);
589 bool GetItemPosition( long item
, wxPoint
& pos
);
590 bool SetItemPosition( long item
, const wxPoint
& pos
); // not supported in wxGLC
591 int GetItemCount(void);
592 void SetItemSpacing( int spacing
, bool isSmall
= FALSE
);
593 int GetItemSpacing( bool isSmall
);
594 int GetSelectedItemCount(void);
595 // wxColour GetTextColour(void) const; // wxGLC has colours for every Item (see wxListItem)
596 // void SetTextColour(const wxColour& col);
597 long GetTopItem(void);
598 void SetSingleStyle( long style
, bool add
= TRUE
) ;
599 void SetWindowStyleFlag(long style
);
600 void RecreateWindow(void) {};
601 long GetNextItem(long item
, int geometry
= wxLIST_NEXT_ALL
, int state
= wxLIST_STATE_DONTCARE
) const;
602 wxImageList
*GetImageList(int which
);
603 void SetImageList(wxImageList
*imageList
, int which
) ;
604 bool Arrange( int flag
= wxLIST_ALIGN_DEFAULT
); // always wxLIST_ALIGN_LEFT in wxGLC
605 bool DeleteItem( long item
);
606 bool DeleteAllItems(void) ;
607 bool DeleteColumn( int col
);
608 // wxText& Edit(long item) ; // not supported in wxGLC
609 bool EnsureVisible( long item
);
610 long FindItem(long start
, const wxString
& str
, bool partial
= FALSE
);
611 long FindItem(long start
, long data
);
612 long FindItem(long start
, const wxPoint
& pt
, int direction
); // not supported in wxGLC
613 long HitTest(const wxPoint
& point
, int& flags
);
614 long InsertItem(wxListItem
& info
);
615 long InsertItem(long index
, const wxString
& label
);
616 long InsertItem(long index
, int imageIndex
);
617 long InsertItem(long index
, const wxString
& label
, int imageIndex
);
618 long InsertColumn(long col
, wxListItem
& info
);
619 long InsertColumn(long col
, const wxString
& heading
, int format
= wxLIST_FORMAT_LEFT
,
621 bool ScrollList(int dx
, int dy
);
622 bool SortItems(wxListCtrlCompare fn
, long data
);
623 bool Update(long item
);
624 virtual bool OnListNotify(wxListEvent
& WXUNUSED(event
)) { return FALSE
; }
625 void SetDropTarget( wxDropTarget
*dropTarget
)
626 { m_mainWin
->SetDropTarget( dropTarget
); };
627 wxDropTarget
*GetDropTarget() const
628 { return m_mainWin
->GetDropTarget(); };
630 void OnIdle( wxIdleEvent
&event
);
634 // wxListTextCtrl m_textCtrl;
635 wxImageList
*m_imageListNormal
;
636 wxImageList
*m_imageListSmall
;
637 wxImageList
*m_imageListState
; // what's that ?
638 wxListHeaderWindow
*m_headerWin
;
639 wxListMainWindow
*m_mainWin
;
641 DECLARE_EVENT_TABLE()
646 #endif // __LISTCTRLH_G__