X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..f9ee64b1356530b7f5c957d250d2a1dcbef60f60:/samples/widgets/listbox.cpp diff --git a/samples/widgets/listbox.cpp b/samples/widgets/listbox.cpp index f6defc4ce7..43cb38118d 100644 --- a/samples/widgets/listbox.cpp +++ b/samples/widgets/listbox.cpp @@ -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,