comctl32: monthcal: Set the stStart parameter when sending the MCN_GETDAYSTATE notification.
This commit is contained in:
parent
b939b8d345
commit
bf6e766df6
|
@ -1303,6 +1303,11 @@ static void MONTHCAL_GoToNextMonth(MONTHCAL_INFO *infoPtr)
|
|||
nmds.cDayState = infoPtr->monthRange;
|
||||
nmds.prgDayState = Alloc(infoPtr->monthRange * sizeof(MONTHDAYSTATE));
|
||||
|
||||
nmds.stStart = infoPtr->todaysDate;
|
||||
nmds.stStart.wYear = infoPtr->currentYear;
|
||||
nmds.stStart.wMonth = infoPtr->currentMonth;
|
||||
nmds.stStart.wDay = 1;
|
||||
|
||||
SendMessageW(infoPtr->hwndNotify, WM_NOTIFY, nmds.nmhdr.idFrom, (LPARAM)&nmds);
|
||||
for(i=0; i<infoPtr->monthRange; i++)
|
||||
infoPtr->monthdayState[i] = nmds.prgDayState[i];
|
||||
|
@ -1333,6 +1338,11 @@ static void MONTHCAL_GoToPrevMonth(MONTHCAL_INFO *infoPtr)
|
|||
nmds.prgDayState = Alloc
|
||||
(infoPtr->monthRange * sizeof(MONTHDAYSTATE));
|
||||
|
||||
nmds.stStart = infoPtr->todaysDate;
|
||||
nmds.stStart.wYear = infoPtr->currentYear;
|
||||
nmds.stStart.wMonth = infoPtr->currentMonth;
|
||||
nmds.stStart.wDay = 1;
|
||||
|
||||
SendMessageW(infoPtr->hwndNotify, WM_NOTIFY, nmds.nmhdr.idFrom, (LPARAM)&nmds);
|
||||
for(i=0; i<infoPtr->monthRange; i++)
|
||||
infoPtr->monthdayState[i] = nmds.prgDayState[i];
|
||||
|
|
Loading…
Reference in New Issue