comctl32/monthcal: Recalculate control layout on MCS_WEEKNUMBERS style change.

This commit is contained in:
Nikolay Sivov 2009-10-07 03:50:02 +04:00 committed by Alexandre Julliard
parent 689a9eb5df
commit 526e1d81a3
1 changed files with 4 additions and 0 deletions

View File

@ -2191,6 +2191,10 @@ static INT MONTHCAL_StyleChanged(MONTHCAL_INFO *infoPtr, WPARAM wStyleType,
infoPtr->dwStyle = lpss->styleNew;
/* make room for week numbers */
if ((lpss->styleNew ^ lpss->styleOld) & MCS_WEEKNUMBERS)
MONTHCAL_UpdateSize(infoPtr);
return 0;
}