Fix position carried in wxSpin{Button,Ctrl} events for 32 bit values in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Aug 2012 20:23:03 +0000 (20:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Aug 2012 20:23:03 +0000 (20:23 +0000)
commit63420bcccff426d195acaad19778465d87e43d62
tree7f60e8fca3e26352f4fb45366751ca04ce8eeeec
parentd15e514e8464eda142ae5cbaada3e2fa37afe8a9
Fix position carried in wxSpin{Button,Ctrl} events for 32 bit values in wxMSW.

Don't use WM_VSCROLL message parameter as the position because it's a 16 bit
value and is not enough for the spin controls using 32 bit range. Just use the
current value available from the control itself instead.

This fixes assert failures in the spin page of the widgets sample when
changing the value of a control when it is > SHRT_MAX.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/spinbutt.cpp
src/msw/spinctrl.cpp