From 57a70f492498de0fab4954f109b5bc3eaf586fd8 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 20 Sep 2011 10:45:24 +0400 Subject: [PATCH] comctl32/monthcal: Fix today label position. --- dlls/comctl32/monthcal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index f46ec5f2e20..dfa3d6e96dc 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -963,9 +963,8 @@ static void MONTHCAL_PaintTodayTitle(const MONTHCAL_INFO *infoPtr, HDC hdc, cons col = infoPtr->dwStyle & MCS_NOTODAYCIRCLE ? 0 : 1; if (infoPtr->dwStyle & MCS_WEEKNUMBERS) col--; - /* TODO: when multiple calendars layout is calculated use first column/last row calendar for that - imaginary day position */ - MONTHCAL_GetDayRectI(infoPtr, &text_rect, col, 6, 0); + /* label is located below first calendar last row */ + MONTHCAL_GetDayRectI(infoPtr, &text_rect, col, 6, infoPtr->dim.cx * infoPtr->dim.cy - infoPtr->dim.cx); box_rect = text_rect; GetDateFormatW(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &infoPtr->todaysDate, NULL, -- 2.11.4.GIT