Nikolay Sivov : comctl32/monthcal: Recalculate control layout on MCS_WEEKNUMBERS style change.
Alexandre Julliard
julliard at winehq.org
Wed Oct 7 09:46:04 CDT 2009
Module: wine
Branch: master
Commit: 526e1d81a34c1baeb93558dc06d7ff44c176eac6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=526e1d81a34c1baeb93558dc06d7ff44c176eac6
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed Oct 7 03:50:02 2009 +0400
comctl32/monthcal: Recalculate control layout on MCS_WEEKNUMBERS style change.
---
dlls/comctl32/monthcal.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 5793ca5..5a34a37 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;
}
More information about the wine-cvs
mailing list