]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/listbox.cpp
fix dialogs sample to remember last color with generic color dialog
[wxWidgets.git] / samples / widgets / listbox.cpp
index b717ecb09782401c7819d8c77214d57d4d91e8b3..65ae57555e6953297a8a469e8a5aa1b43a98db16 100644 (file)
@@ -24,6 +24,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_LISTBOX
+
 // for all others, include the necessary headers
 #ifndef WX_PRECOMP
     #include "wx/log.h"
@@ -43,7 +45,7 @@
 #include "wx/checklst.h"
 
 #include "widgets.h"
-#if 1
+
 #include "icons/listbox.xpm"
 
 // ----------------------------------------------------------------------------
@@ -517,4 +519,4 @@ void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
     CreateLbox();
 }
 
-#endif
+#endif // wxUSE_LISTBOX