]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/spinbutt.h
cleanup
[wxWidgets.git] / include / wx / msw / spinbutt.h
index 0336eb411bc827c5c428a593bf0c7db2f47dab2d..b8eeefe3dc51d17ee6d9db35518a12d3f819a139 100644 (file)
 #ifndef _WX_SPINBUTT_H_
 #define _WX_SPINBUTT_H_
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma interface "spinbutt.h"
-#endif
-
 #include "wx/control.h"
 #include "wx/event.h"
 
@@ -64,6 +60,9 @@ public:
 protected:
    virtual wxSize DoGetBestSize() const;
 
+   // ensure that the control displays a value in the current range
+   void NormalizeValue() { SetValue(GetValue()); }
+
 private:
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton)
 };