comctl32: Fix going to today with multiple calenders
André Hentschel
nerv at dawncrow.de
Thu Sep 22 15:03:49 CDT 2011
---
dlls/comctl32/monthcal.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 5f8a36c..b330871 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1970,9 +1970,7 @@ MONTHCAL_RButtonUp(MONTHCAL_INFO *infoPtr, LPARAM lParam)
if( TrackPopupMenu(hMenu, TPM_RIGHTBUTTON | TPM_NONOTIFY | TPM_RETURNCMD,
menupoint.x, menupoint.y, 0, infoPtr->hwndSelf, NULL))
{
- infoPtr->calendars[0].month = infoPtr->todaysDate;
- infoPtr->minSel = infoPtr->todaysDate;
- infoPtr->maxSel = infoPtr->todaysDate;
+ MONTHCAL_SetCurSel(infoPtr, &infoPtr->todaysDate);
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE);
}
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list