comctl32: Select today's date when the today link is clicked.

This commit is contained in:
Lei Zhang 2007-10-14 17:44:15 -07:00 committed by Alexandre Julliard
parent 734600e272
commit e58e4679b5
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}