X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cd891743efcff4d6603c68b98e72fb033792a88..a7f560a2cb7f512c8fe3a9f6ff501c551e9e8941:/samples/listctrl/listtest.h?ds=inline diff --git a/samples/listctrl/listtest.h b/samples/listctrl/listtest.h index 446585a4a4..ef100dff52 100644 --- a/samples/listctrl/listtest.h +++ b/samples/listctrl/listtest.h @@ -19,9 +19,13 @@ public: class MyListCtrl: public wxListCtrl { public: - MyListCtrl(wxWindow *parent, const wxWindowID id, const wxPoint& pos, - const wxSize& size, long style): - wxListCtrl(parent, id, pos, size, style) + MyListCtrl(wxWindow *parent, + const wxWindowID id, + const wxPoint& pos, + const wxSize& size, + long style) + : wxListCtrl(parent, id, pos, size, style), + m_attr(*wxCYAN, *wxLIGHT_GREY, wxNullFont) { } @@ -49,6 +53,9 @@ private: virtual wxString OnGetItemText(long item, long column) const; virtual int OnGetItemImage(long item) const; + virtual wxListItemAttr *OnGetItemAttr(long item) const; + + wxListItemAttr m_attr; DECLARE_EVENT_TABLE() };