mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
Filip Navara <xnavara@volny.cz>
Use system metrics values in TOOLBAR_DrawPattern instead of hardcoded values. svn path=/trunk/; revision=10446
This commit is contained in:
parent
a8f3fd698d
commit
0b219a650f
1 changed files with 4 additions and 1 deletions
|
@ -632,9 +632,12 @@ TOOLBAR_DrawPattern (LPRECT lpRect, NMTBCUSTOMDRAW *tbcd)
|
|||
COLORREF clrBkOld;
|
||||
INT cx = lpRect->right - lpRect->left;
|
||||
INT cy = lpRect->bottom - lpRect->top;
|
||||
INT cxEdge = GetSystemMetrics(SM_CXEDGE);
|
||||
INT cyEdge = GetSystemMetrics(SM_CYEDGE);
|
||||
clrTextOld = SetTextColor(hdc, tbcd->clrBtnHighlight);
|
||||
clrBkOld = SetBkColor(hdc, tbcd->clrBtnFace);
|
||||
PatBlt (hdc, lpRect->left + 2, lpRect->top + 2, cx - 4, cy - 4, PATCOPY);
|
||||
PatBlt (hdc, lpRect->left + cxEdge, lpRect->top + cyEdge,
|
||||
cx - (2 * cxEdge), cy - (2 * cyEdge), PATCOPY);
|
||||
SetBkColor(hdc, clrBkOld);
|
||||
SetTextColor(hdc, clrTextOld);
|
||||
SelectObject (hdc, hbr);
|
||||
|
|
Loading…
Reference in a new issue