]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gauge.cpp
added dependency handling to Makefiles
[wxWidgets.git] / src / os2 / gauge.cpp
index 00ab8236bff185b5fc7f7f968cb61b8cc3550f5e..620760fd5f6d5c2ecf85cbaeaadb1d8ac0621daa 100644 (file)
 /* public function prototypes */
 // BOOL _Optlink gaugeInit(HINSTANCE hInstance);
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
-#endif
 
 bool wxGauge::Create(wxWindow *parent, wxWindowID id,
            int range,
            const wxPoint& pos,
            const wxSize& size,
            long style,
+#if wxUSE_VALIDATORS
            const wxValidator& validator,
+#endif
            const wxString& name)
 {
     static bool wxGaugeOS2Initialised = FALSE;
@@ -73,7 +73,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
     }
 
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif
     if (parent) parent->AddChild(this);
     m_rangeMax = range;
     m_gaugePos = 0;