]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/checklst/checklst.cpp
Defaults in wxWinCE documented.
[wxWidgets.git] / samples / checklst / checklst.cpp
index 6b584352fb2a0114ffbea8fe9e64b2d83cb858c8..4d5eb27c418b52eba67e04f3ac7bd7a83364b8a6 100644 (file)
 #include  "wx/menuitem.h"
 #include  "wx/checklst.h"
 
+#if !wxUSE_CHECKLISTBOX
+    #error "This sample can't be built without wxUSE_CHECKLISTBOX"
+#endif // wxUSE_CHECKLISTBOX
+
 // Define a new application type
 class CheckListBoxApp: public wxApp
 {
@@ -48,7 +52,7 @@ public:
     // ctor & dtor
     CheckListBoxFrame(wxFrame *frame, const wxChar *title,
                       int x, int y, int w, int h);
-    virtual ~CheckListBoxFrame();
+    virtual ~CheckListBoxFrame(){};
 
     // notifications
     void OnQuit(wxCommandEvent& event);
@@ -243,10 +247,6 @@ void CheckListBoxFrame::CreateCheckListbox(long flags)
     m_pListBox->Select(3);
 }
 
-CheckListBoxFrame::~CheckListBoxFrame()
-{
-}
-
 void CheckListBoxFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 {
     Close(true);
@@ -254,7 +254,7 @@ void CheckListBoxFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 
 void CheckListBoxFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
-    wxMessageBox(wxT("Demo of wxCheckListBox control\n© Vadim Zeitlin 1998-2002"),
+    wxMessageBox(wxT("Demo of wxCheckListBox control\n(c) Vadim Zeitlin 1998-2002"),
                  wxT("About wxCheckListBox"),
                  wxICON_INFORMATION, this);
 }