Increase size of current date selection

svn path=/trunk/; revision=30047
This commit is contained in:
Thomas Bluemel 2007-11-01 17:41:00 +00:00
parent 4a05c1e591
commit 80b9ed9c09

View file

@ -542,7 +542,20 @@ MonthCalPaint(IN PMONTHCALWND infoPtr,
if (Day == infoPtr->Day)
{
rcHighlight = rcText;
SIZE TextSel;
TextSel.cx = (infoPtr->CellSize.cx * 2) / 3;
TextSel.cy = (infoPtr->CellSize.cy * 3) / 4;
if (TextSel.cx < rcText.right - rcText.left)
TextSel.cx = rcText.right - rcText.left;
if (TextSel.cy < rcText.bottom - rcText.top)
TextSel.cy = rcText.bottom - rcText.top;
rcHighlight.left = rcCell.left + (infoPtr->CellSize.cx / 2) - (TextSel.cx / 2);
rcHighlight.right = rcHighlight.left + TextSel.cx;
rcHighlight.top = rcCell.top + (infoPtr->CellSize.cy / 2) - (TextSel.cy / 2);
rcHighlight.bottom = rcHighlight.top + TextSel.cy;
InflateRect(&rcHighlight,
GetSystemMetrics(SM_CXFOCUSBORDER),