]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobut.cpp
Initial revision
[wxWidgets.git] / src / msw / radiobut.cpp
index d63f27cc79aa4e7fe43c689b05049254785f15d2..0f7b1dc92ea021ad41ed00800b588ad480d50511 100644 (file)
 
 #include "wx/msw/private.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
 // IMPLEMENT_DYNAMIC_CLASS(wxBitmapRadioButton, wxRadioButton)
-#endif
 
 bool wxRadioButton::MSWCommand(WXUINT param, WXWORD id)
 {
@@ -54,7 +52,9 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
            const wxString& name)
 {
   SetName(name);
+#if wxUSE_VALIDATORS
   SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
   if (parent) parent->AddChild(this);