+void MyFrame::OnDeselectAll(wxCommandEvent& WXUNUSED(event))
+{
+ int n = m_listCtrl->GetItemCount();
+ int i;
+ for(i = 0; i < n; i++)
+ m_listCtrl->SetItemState(i,0,wxLIST_STATE_SELECTED);
+}
+
+void MyFrame::OnSelectAll(wxCommandEvent& WXUNUSED(event))
+{
+ int n = m_listCtrl->GetItemCount();
+ int i;
+ for(i = 0; i < n; i++)
+ m_listCtrl->SetItemState(i,wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
+}
+