X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4438caf41af49f00f3c8137ac801871f59cce386..a885d89ae9c9d6ff5275cb5b1ea3087132aacf8c:/src/msw/gauge95.cpp?ds=sidebyside diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index ade3fdca7c..c43b527cb6 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -29,13 +29,11 @@ #include "wx/msw/gauge95.h" #include "wx/msw/private.h" -#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__) -#include +#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) + #include #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