#ifndef _WX_LISTCTRL_H_
#define _WX_LISTCTRL_H_
-#include "wx/control.h"
-#include "wx/event.h"
-#include "wx/imaglist.h"
#include "wx/generic/listctrl.h"
class wxMacDataBrowserListCtrlControl;
-
-// type of compare function for wxListCtrl sort operation
-typedef int (*wxListCtrlCompare)(long item1, long item2, long sortData);
+class wxMacListControl;
class WXDLLEXPORT wxListCtrl: public wxControl
{
// Gets the number of columns in the list control
int GetColumnCount() const;
+ void SetItemSpacing( int spacing, bool isSmall = false );
wxSize GetItemSpacing() const;
// Gets the number of selected items in the list control
// list or report view
long GetTopItem() const ;
+ // are we in report mode?
+ bool InReportView() const { return HasFlag(wxLC_REPORT); }
+
bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
// Add or remove a single window style
int m_count; // for virtual lists, store item count
};
-typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&);
-
#endif
// _WX_LISTCTRL_H_