void MyFrame::OnListView(wxCommandEvent& WXUNUSED(event))
{
- m_logWindow->Clear();
m_listCtrl->DeleteAllItems();
+ m_logWindow->Clear();
m_listCtrl->SetSingleStyle(wxLC_LIST);
m_listCtrl->SetImageList((wxImageList *) NULL, wxIMAGE_LIST_NORMAL);
m_listCtrl->SetImageList((wxImageList *) NULL, wxIMAGE_LIST_SMALL);
void MyFrame::OnReportView(wxCommandEvent& WXUNUSED(event))
{
- m_logWindow->Clear();
m_listCtrl->DeleteAllItems();
+ m_logWindow->Clear();
m_listCtrl->SetSingleStyle(wxLC_REPORT);
m_listCtrl->SetImageList((wxImageList *) NULL, wxIMAGE_LIST_NORMAL);
m_listCtrl->SetImageList(wxGetApp().m_imageListSmall, wxIMAGE_LIST_SMALL);
void MyFrame::OnIconView(wxCommandEvent& WXUNUSED(event))
{
- m_logWindow->Clear();
m_listCtrl->DeleteAllItems();
+ m_logWindow->Clear();
m_listCtrl->SetSingleStyle(wxLC_ICON);
m_listCtrl->SetImageList(wxGetApp().m_imageListNormal, wxIMAGE_LIST_NORMAL);
m_listCtrl->SetImageList(wxGetApp().m_imageListSmall, wxIMAGE_LIST_SMALL);
void MyFrame::OnIconTextView(wxCommandEvent& WXUNUSED(event))
{
- m_logWindow->Clear();
m_listCtrl->DeleteAllItems();
+ m_logWindow->Clear();
m_listCtrl->SetSingleStyle(wxLC_ICON);
m_listCtrl->SetImageList(wxGetApp().m_imageListNormal, wxIMAGE_LIST_NORMAL);
m_listCtrl->SetImageList(wxGetApp().m_imageListSmall, wxIMAGE_LIST_SMALL);
void MyFrame::OnSmallIconView(wxCommandEvent& WXUNUSED(event))
{
- m_logWindow->Clear();
m_listCtrl->DeleteAllItems();
+ m_logWindow->Clear();
m_listCtrl->SetSingleStyle(wxLC_SMALL_ICON);
m_listCtrl->SetImageList(wxGetApp().m_imageListNormal, wxIMAGE_LIST_NORMAL);
m_listCtrl->SetImageList(wxGetApp().m_imageListSmall, wxIMAGE_LIST_SMALL);
void MyFrame::OnSmallIconTextView(wxCommandEvent& WXUNUSED(event))
{
- m_logWindow->Clear();
m_listCtrl->DeleteAllItems();
+ m_logWindow->Clear();
m_listCtrl->SetSingleStyle(wxLC_SMALL_ICON);
m_listCtrl->SetImageList(wxGetApp().m_imageListNormal, wxIMAGE_LIST_NORMAL);
m_listCtrl->SetImageList(wxGetApp().m_imageListSmall, wxIMAGE_LIST_SMALL);