+#ifndef NO_MULTIPLE_SELECTION
+
+void MyFrame::OnDumpSelected(wxCommandEvent& WXUNUSED(event))
+{
+ wxArrayTreeItemIds array;
+
+ size_t count = m_treeCtrl->GetSelections(array);
+ wxLogMessage(_T("%u items selected"), count);
+
+ for ( size_t n = 0; n < count; n++ )
+ {
+ wxLogMessage("\t%s", m_treeCtrl->GetItemText(array.Item(n)).c_str());
+ }
+}
+
+void MyFrame::OnSelect(wxCommandEvent& event)
+{
+ m_treeCtrl->SelectItem(m_treeCtrl->GetSelection());
+}
+
+void MyFrame::OnUnselect(wxCommandEvent& event)
+{
+ m_treeCtrl->UnselectAll();
+}
+
+#endif // NO_MULTIPLE_SELECTION
+