Code: Select all
class MyList : public wxListCtrl
….
virtual wxString OnGetItemText(long item, long column) const
{
//
}
m_mylist = new MyList(this, ID_MYLIST, wxDefaultPosition, wxSize(-1, -1), wxLC_REPORT | wxLC_NO_HEADER | wxLC_VIRTUAL | wxLC_SINGLE_SEL | wxLC_HRULES | wxLC_VRULES );