[PATCH 6/7] Recalculate control layout on MCS_WEEKNUMBERS style change

Nikolay Sivov bunglehead at gmail.com
Tue Oct 6 18:50:02 CDT 2009


---
 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;
 }
 
-- 
1.5.6.5


--=-RP8oOuEJZgztpBFBRjmw--




More information about the wine-patches mailing list