]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
added some utils (tex2rtf, helpgen, makegen) to make system
[wxWidgets.git] / src / msw / listbox.cpp
index 1f51b5ded8cbf42a39c415844dbf235c441c9487..128111853e8d173a71dfe3578d3a7fbb462c2f2f 100644 (file)
@@ -82,9 +82,7 @@
   #endif
 #endif
 
-#if !USE_SHARED_LIBRARY
     IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
-#endif
 
 // ============================================================================
 // list box item declaration and implementation
@@ -140,7 +138,9 @@ bool wxListBox::Create(wxWindow *parent,
     m_selected = 0;
 
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
     if (parent)
         parent->AddChild(this);