+void MyFrame::OnDump(wxCommandEvent& WXUNUSED(event))
+{
+ wxTreeItemId root = m_treeCtrl->GetSelection();
+ m_treeCtrl->GetItemsRecursively(root, -1);
+}
+
+void MyFrame::DoSetBold(bool bold)
+{
+ m_treeCtrl->SetItemBold(m_treeCtrl->GetSelection(), bold);
+}
+
+void MyFrame::OnDelete(wxCommandEvent& WXUNUSED(event))
+{
+ wxTreeItemId item = m_treeCtrl->GetSelection();
+ m_treeCtrl->Delete(item);
+}
+
+void MyFrame::OnDeleteAll(wxCommandEvent& WXUNUSED(event))
+{
+ m_treeCtrl->DeleteAllItems();
+}
+
+void MyFrame::OnRecreate(wxCommandEvent& event)
+{
+ OnDeleteAll(event);
+ m_treeCtrl->AddTestItemsToTree(3, 2);
+}
+