Fix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jun 2011 22:58:11 +0000 (22:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jun 2011 22:58:11 +0000 (22:58 +0000)
commitab2ef6e0e6886a5ef0861399125075a9cba75508
treeb4dbfe77b73280e49e525090ec56719e8f5aac98
parent1e5ad6e1d1f0f8f4a8e5913d1faf2b18900ed049
Fix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.

The bug fix of r67990 relied on DateTime_SetSystemtime() returning FALSE if
setting the date failed but, unfortunately, this function doesn't behave
correctly under XP (and presumably earlier systems) and returns TRUE even if
it didn't actually change the date because it was out of range.

Implement an alternative solution not relying on this function return value
but simply checking the range ourselves.

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