]> git.saurik.com Git - wxWidgets.git/commit
Fix errors in handling of maximum field in wxGenericProgressDialog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Sep 2010 17:25:58 +0000 (17:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Sep 2010 17:25:58 +0000 (17:25 +0000)
commit2de77c6a543caf44069b275dd154d4fc692ad29d
tree9516574c9bdbe20aa85e40d6f2da2a637a816442
parent4f4d6f44f9deb819972e68618f1745479fbfbe72
Fix errors in handling of maximum field in wxGenericProgressDialog.

Provide a SetMaximum() function for setting just m_maximum and return its
value from GetRange() instead of using m_gauge->GetRange() which doesn't work
when the native MSW version is used nor when the range is > USHRT_MAX under
MSW in any case.

More generally, this should fix a lot of bugs for progress dialogs using such
range as the values were not interpreted correctly in many places.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/progdlgg.h
src/generic/progdlgg.cpp
src/msw/progdlg.cpp