comctl32: MonthCalendar - Fix highlighting of current date.

This commit is contained in:
Vijay Kiran Kamuju 2006-12-24 13:13:56 +05:30 committed by Alexandre Julliard
parent 957474f223
commit c5b8df481f

View file

@ -1891,6 +1891,10 @@ MONTHCAL_Create(HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr->bk = GetSysColor(COLOR_WINDOW);
infoPtr->txt = GetSysColor(COLOR_WINDOWTEXT);
/* set the current day for highlighing */
infoPtr->minSel.wDay = infoPtr->todaysDate.wDay;
infoPtr->maxSel.wDay = infoPtr->todaysDate.wDay;
/* call MONTHCAL_UpdateSize to set all of the dimensions */
/* of the control */
MONTHCAL_UpdateSize(infoPtr);