Filip Navara wrote:
Changelog: - Make the pattern drawing in TOOLBAR_DrawPattern look better.
Filip Navara, navaraf(a)reactos.com
------------------------------------------------------------------------
--- dlls/comctl32/toolbar.c 16 Jun 2004 06:46:13 -0000 1.15 +++ dlls/comctl32/toolbar.c 16 Jul 2004 19:17:24 -0000 @@ -634,7 +634,7 @@ INT cy = lpRect->bottom - lpRect->top; clrTextOld = SetTextColor(hdc, tbcd->clrBtnHighlight); clrBkOld = SetBkColor(hdc, tbcd->clrBtnFace); - PatBlt (hdc, lpRect->left, lpRect->top, cx, cy, PATCOPY); + PatBlt (hdc, lpRect->left + 2, lpRect->top + 2, cx - 4, cy - 4, PATCOPY); SetBkColor(hdc, clrBkOld); SetTextColor(hdc, clrTextOld); SelectObject (hdc, hbr);
This should use GetSystemMetrics(SM_CXEDGE and SM_CYEDGE). I'll submit a patch to fix this since it has already been committed. Rob
Robert Shearman wrote:
This should use GetSystemMetrics(SM_CXEDGE and SM_CYEDGE). I'll submit a patch to fix this since it has already been committed.
You're right. The attached patch fixes that. (Sorry if I'm duplicating work.) - Filip
participants (2)
-
Filip Navara -
Robert Shearman