Demonstrate checkboxes in virtual wxListCtrl

This commit is contained in:
Maarten Bent
2019-05-05 14:26:39 +02:00
parent c20060745f
commit dd23722432
2 changed files with 47 additions and 0 deletions

View File

@@ -74,6 +74,9 @@ public:
void OnRightClick(wxMouseEvent& event);
virtual void CheckItem(long item, bool check) wxOVERRIDE;
virtual bool IsItemChecked(long item) const wxOVERRIDE;
private:
void ShowContextMenu(const wxPoint& pos);
wxLog *m_logOld;
@@ -83,11 +86,14 @@ private:
void LogColEvent(const wxListEvent& event, const wxString& eventName);
virtual wxString OnGetItemText(long item, long column) const wxOVERRIDE;
virtual bool OnGetItemIsChecked(long item) const wxOVERRIDE;
virtual int OnGetItemColumnImage(long item, long column) const wxOVERRIDE;
virtual wxItemAttr *OnGetItemAttr(long item) const wxOVERRIDE;
long m_updated;
// checked boxes in virtual list
wxSelectionStore m_checked;
wxDECLARE_NO_COPY_CLASS(MyListCtrl);
wxDECLARE_EVENT_TABLE();