X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d0d80bd1ce297cdefc2c8f8de3be84cbe9cced0..730d336601a3ece761b56e7c05d1099352670a25:/src/msw/slider95.cpp diff --git a/src/msw/slider95.cpp b/src/msw/slider95.cpp index 260aee5565..fdb2ad5840 100644 --- a/src/msw/slider95.cpp +++ b/src/msw/slider95.cpp @@ -527,7 +527,8 @@ void wxSlider::SetRange(int minValue, int maxValue) m_rangeMin = minValue; m_rangeMax = maxValue; - ::SendMessage(GetHwnd(), TBM_SETRANGE, TRUE, MAKELONG(minValue, maxValue)); + ::SendMessage(GetHwnd(), TBM_SETRANGEMIN, TRUE, m_rangeMin); + ::SendMessage(GetHwnd(), TBM_SETRANGEMAX, TRUE, m_rangeMax); if ( m_labels ) {