X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..e1bdd5078c90d3813a815fc86ee3dd050b2ee1d3:/src/os2/gauge.cpp diff --git a/src/os2/gauge.cpp b/src/os2/gauge.cpp index 89d6f45340..620760fd5f 100644 --- a/src/os2/gauge.cpp +++ b/src/os2/gauge.cpp @@ -9,7 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -// For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifndef WX_PRECOMP @@ -47,31 +46,36 @@ #define ZYZGS_3D 0x8000L /* control will be 3D */ /* public function prototypes */ -BOOL _Optlink gaugeInit(HINSTANCE hInstance); +// 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; if ( !wxGaugeOS2Initialised ) { +//TODO: +/* if (!gaugeInit((HINSTANCE) wxGetInstance())) wxFatalError("Cannot initalize Gauge library"); +*/ wxGaugeOS2Initialised = TRUE; } SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif if (parent) parent->AddChild(this); m_rangeMax = range; m_gaugePos = 0;