Module: wine Branch: master Commit: 7fb6031731f3e09704e9757ff66562a5ee9e2263 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7fb6031731f3e09704e9757ff6...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Aug 2 09:48:07 2010 +0400
comctl32/monthcal: Erase week numbers rectangle before drawing new text.
---
dlls/comctl32/monthcal.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 9fe7f5c..c1c105c 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -799,6 +799,7 @@ static void MONTHCAL_PaintWeeknumbers(const MONTHCAL_INFO *infoPtr, HDC hdc, con INT i, prev_month; SYSTEMTIME st; WCHAR buf[80]; + HBRUSH hbr; RECT r;
if (!(infoPtr->dwStyle & MCS_WEEKNUMBERS)) return; @@ -868,6 +869,13 @@ static void MONTHCAL_PaintWeeknumbers(const MONTHCAL_INFO *infoPtr, HDC hdc, con }
r = infoPtr->calendars[calIdx].weeknums; + + /* erase whole week numbers area */ + hbr = CreateSolidBrush(infoPtr->monthbk); + FillRect(hdc, &r, hbr); + DeleteObject(hbr); + + /* reduce rectangle to one week number */ r.bottom = r.top + infoPtr->height_increment;
for(i = 0; i < 6; i++) {