added virtual list control functions (but not implemented them yet) to the native wxListCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-05 13:08:37 +00:00
parent 018d679e79
commit 2c1f73eecf
2 changed files with 147 additions and 72 deletions

View File

@@ -122,6 +122,8 @@ public:
bool DeleteAllColumns();
bool DeleteColumn( int col );
void SetItemCount(long count);
void EditLabel( long item ) { Edit(item); }
void Edit( long item );
@@ -141,6 +143,9 @@ public:
bool SortItems( wxListCtrlCompare fn, long data );
bool Update( long item );
// returns true if it is a virtual list control
bool IsVirtual() const { return (GetWindowStyle() & wxLC_VIRTUAL) != 0; }
void OnIdle( wxIdleEvent &event );
void OnSize( wxSizeEvent &event );
@@ -173,6 +178,16 @@ public:
wxListHeaderWindow *m_headerWin;
wxListMainWindow *m_mainWin;
protected:
// return the text for the given column of the given item
virtual wxString OnGetItemText(long item, long column) const;
// return the icon for the given item
virtual int OnGetItemImage(long item) const;
// it calls our OnGetXXX() functions
friend wxListMainWindow;
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxListCtrl);