Lei Zhang : comctl32: Select today's date when the today link is clicked.
Alexandre Julliard
julliard at winehq.org
Tue Oct 16 07:59:37 CDT 2007
Module: wine
Branch: master
Commit: e58e4679b5c745f4d4c450088fe617d28306ea3c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e58e4679b5c745f4d4c450088fe617d28306ea3c
Author: Lei Zhang <thestig at google.com>
Date: Sun Oct 14 17:44:15 2007 -0700
comctl32: Select today's date when the today link is clicked.
---
dlls/comctl32/monthcal.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 83da9ad..7d40a71 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1475,8 +1475,12 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
}
if(hit == MCHT_TODAYLINK) {
+ infoPtr->curSelDay = infoPtr->todaysDate.wDay;
+ infoPtr->firstSelDay = infoPtr->todaysDate.wDay;
infoPtr->currentMonth=infoPtr->todaysDate.wMonth;
infoPtr->currentYear=infoPtr->todaysDate.wYear;
+ MONTHCAL_CopyTime(&infoPtr->todaysDate, &infoPtr->minSel);
+ MONTHCAL_CopyTime(&infoPtr->todaysDate, &infoPtr->maxSel);
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE);
return TRUE;
}
More information about the wine-cvs
mailing list