]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gauge.cpp
replaced wxYield() call in PopupMenu() by a much safer wxYieldForCommandsOnly() ...
[wxWidgets.git] / src / os2 / gauge.cpp
index 89d6f45340423bd45441c1ac1675190558866e0c..620760fd5f6d5c2ecf85cbaeaadb1d8ac0621daa 100644 (file)
@@ -9,7 +9,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-// For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
 #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;