]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gaugemsw.cpp
fix for textctrl height
[wxWidgets.git] / src / msw / gaugemsw.cpp
index 5a86380c51738f04329fc28aec27af1cb0bcf5fb..cb8c2b91d518c5a132a13436bc8712fe2d351c33 100644 (file)
@@ -60,9 +60,7 @@
 /* public function prototypes */
 BOOL FAR PASCAL gaugeInit(HINSTANCE hInstance);
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxGaugeMSW, wxControl)
-#endif
 
 bool wxGaugeMSW::Create(wxWindow *parent, wxWindowID id,
            int range,
@@ -82,7 +80,9 @@ bool wxGaugeMSW::Create(wxWindow *parent, wxWindowID id,
   }
 
   SetName(name);
+#if wxUSE_VALIDATORS
   SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
   if (parent) parent->AddChild(this);
   m_rangeMax = range;