comctl32/monthcal: Recalculate control layout on MCS_WEEKNUMBERS style change.
This commit is contained in:
parent
689a9eb5df
commit
526e1d81a3
|
@ -2191,6 +2191,10 @@ static INT MONTHCAL_StyleChanged(MONTHCAL_INFO *infoPtr, WPARAM wStyleType,
|
||||||
|
|
||||||
infoPtr->dwStyle = lpss->styleNew;
|
infoPtr->dwStyle = lpss->styleNew;
|
||||||
|
|
||||||
|
/* make room for week numbers */
|
||||||
|
if ((lpss->styleNew ^ lpss->styleOld) & MCS_WEEKNUMBERS)
|
||||||
|
MONTHCAL_UpdateSize(infoPtr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue