]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/listbox.cpp
New moddef file
[wxWidgets.git] / samples / widgets / listbox.cpp
index f6defc4ce7558183ff7713ba8c60d7416493e9c4..43cb38118d018241ace6f736dff5ab45ca1c965d 100644 (file)
@@ -144,8 +144,8 @@ protected:
                *m_textDelete;
 
 private:
-    DECLARE_EVENT_TABLE();
-    DECLARE_WIDGETS_PAGE(ListboxWidgetsPage);
+    DECLARE_EVENT_TABLE()
+    DECLARE_WIDGETS_PAGE(ListboxWidgetsPage)
 };
 
 // ----------------------------------------------------------------------------
@@ -355,6 +355,7 @@ void ListboxWidgetsPage::CreateLbox()
         delete m_lbox;
     }
 
+#if wxUSE_CHECKLISTBOX
     if ( m_chkCheck->GetValue() )
     {
         m_lbox = new wxCheckListBox(this, ListboxPage_Listbox,
@@ -363,6 +364,7 @@ void ListboxWidgetsPage::CreateLbox()
                                     flags);
     }
     else // just a listbox
+#endif
     {
         m_lbox = new wxListBox(this, ListboxPage_Listbox,
                                wxDefaultPosition, wxDefaultSize,