]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge95.cpp
Reverted Vadims change for the size of filled
[wxWidgets.git] / src / msw / gauge95.cpp
index 0ddfcba4d4ea6141e91fa6d74f32ef353d182837..74e164915802718a47474ba21a655bc666257a2e 100644 (file)
@@ -33,9 +33,7 @@
 #include <commctrl.h>
 #endif
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxGauge95, wxControl)
-#endif
 
 bool wxGauge95::Create(wxWindow *parent, wxWindowID id,
            int range,
@@ -46,7 +44,9 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id,
            const wxString& name)
 {
   SetName(name);
+#if wxUSE_VALIDATORS
   SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
   if (parent) parent->AddChild(this);
   m_rangeMax = range;
@@ -67,7 +67,7 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id,
   int width = size.x;
   int height = size.y;
 
-  long msFlags = WS_CHILD | WS_VISIBLE | WS_TABSTOP;
+  long msFlags = WS_CHILD | WS_VISIBLE;
 
 #ifndef PBS_VERTICAL
 #define PBS_VERTICAL 0x04