wxTreeList is using wxDataViewCtrl, which allows to not display column headers (wxDV_NO_HEADER style). Unfortunately this style is not available in wxTreeList. Also, it is not possible to simply override wxTreeList::Create, because it uses an internal class, which is not exported. So, I enhanced wxTreeList to support the new style wxTL_NO_HEADER:
Based on 2.9.4:
in include/wx/treelist.h, line 50
add
Code: Select all
wxTL_NO_HEADER = 0x0010,
replace with
Code: Select all
long styleDataView = HasFlag(wxTL_MULTIPLE) ? wxDV_MULTIPLE
: wxDV_SINGLE;
if ( HasFlag(wxTL_NO_HEADER) )
styleDataView |= wxDV_NO_HEADER;
if ( !m_view->Create(this, wxID_ANY,
wxPoint(0, 0), GetClientSize(),
styleDataView) )
Peter