// number of items in icon/small icon view
static const int NUM_ICONS = 9;
-int wxCALLBACK MyCompareFunction(long item1, long item2, long sortData)
+int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData))
{
// inverse the order
- if (item1 < item2) return -1;
- if (item1 > item2) return 1;
+ if (item1 < item2)
+ return -1;
+ if (item1 > item2)
+ return 1;
+
return 0;
}
dialog.ShowModal();
}
-void MyFrame::OnFreeze(wxCommandEvent& event)
+void MyFrame::OnFreeze(wxCommandEvent& WXUNUSED(event))
{
wxLogMessage(_T("Freezing the control"));
m_listCtrl->Freeze();
}
-void MyFrame::OnThaw(wxCommandEvent& event)
+void MyFrame::OnThaw(wxCommandEvent& WXUNUSED(event))
{
wxLogMessage(_T("Thawing the control"));
sw.Time()));
}
-void MyFrame::OnShowSelInfo(wxCommandEvent& event)
+void MyFrame::OnShowSelInfo(wxCommandEvent& WXUNUSED(event))
{
int selCount = m_listCtrl->GetSelectedItemCount();
wxLogMessage(_T("%d items selected:"), selCount);
}
}
-void MyFrame::OnShowColInfo(wxCommandEvent& event)
+void MyFrame::OnShowColInfo(wxCommandEvent& WXUNUSED(event))
{
int count = m_listCtrl->GetColumnCount();
wxLogMessage(wxT("%d columns:"), count);
return wxString::Format(_T("Column %ld of item %ld"), column, item);
}
-int MyListCtrl::OnGetItemImage(long item) const
+int MyListCtrl::OnGetItemImage(long WXUNUSED(item)) const
{
return 0;
}
class MyApp: public wxApp
{
public:
+ MyApp() { }
+
virtual bool OnInit();
+
+private:
+ DECLARE_NO_COPY_CLASS(MyApp)
};
class MyListCtrl: public wxListCtrl
wxListItemAttr m_attr;
+ DECLARE_NO_COPY_CLASS(MyListCtrl)
DECLARE_EVENT_TABLE()
};
wxLog *m_logOld;
+ DECLARE_NO_COPY_CLASS(MyFrame)
DECLARE_EVENT_TABLE()
};