X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4bf45c9ecafa14b167ef0c911a83cd5cc8fba4d2..2cbd98abc221cab46a54582c37a77f338b44f6b7:/include/wx/msw/spinbutt.h diff --git a/include/wx/msw/spinbutt.h b/include/wx/msw/spinbutt.h index 0336eb411b..b8eeefe3dc 100644 --- a/include/wx/msw/spinbutt.h +++ b/include/wx/msw/spinbutt.h @@ -12,10 +12,6 @@ #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) };