mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 16:05:37 +00:00
Increase size of current date selection
svn path=/trunk/; revision=30047
This commit is contained in:
parent
4a05c1e591
commit
80b9ed9c09
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue