Correct week day returned from wxCalendarCtrl::HitTest() on header click.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Aug 2009 20:37:03 +0000 (20:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Aug 2009 20:37:03 +0000 (20:37 +0000)
commit1b88c4e4a6ee616da3309e28b7500fa80fbd5240
treefca9fae37878d45b25830fabbb28bbcac466ecae
parent18547275bb96dd0f4dc8273771faf818e65a43b3
Correct week day returned from wxCalendarCtrl::HitTest() on header click.

A combination of a wx bug in conversion from native control week days to
wxDateTime week days and a bug of native control itself when the first week
day is not Monday resulted in the day being off by one it did start with
Monday. The new code works correctly in both Monday and Sunday cases, at least
until the bug in comctl32.dll is corrected.

See comment:5 of #11057.

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