From 526e1d81a34c1baeb93558dc06d7ff44c176eac6 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 7 Oct 2009 03:50:02 +0400 Subject: [PATCH] comctl32/monthcal: Recalculate control layout on MCS_WEEKNUMBERS style change. --- dlls/comctl32/monthcal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 5793ca58a96..5a34a37c1b2 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -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; }