X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..0be274189380d9de3c60836dab2fc080f21f88ee:/include/wx/msw/spinbutt.h diff --git a/include/wx/msw/spinbutt.h b/include/wx/msw/spinbutt.h index 7113afac26..b8eeefe3dc 100644 --- a/include/wx/msw/spinbutt.h +++ b/include/wx/msw/spinbutt.h @@ -60,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) };