comctl32/monthcal: Fix today label position.
This commit is contained in:
parent
0d3b04d033
commit
57a70f4924
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue