void MyFrame::OnFlatList(wxCommandEvent& event) { m_isFlat = event.IsChecked(); RecreateTreeListCtrl(m_treelist->GetWindowStyle()); }
void MyFrame::OnMultiSelect(wxCommandEvent& event) { long style = m_treelist->GetWindowStyle(); if ( event.IsChecked() ) style |= wxTL_MULTIPLE; else style &= ~wxTL_MULTIPLE; RecreateTreeListCtrl(style); }