Make the pattern drawing in TOOLBAR_DrawPattern look better.
This commit is contained in:
parent
2de54537d6
commit
6a9cc38d9e
@ -634,7 +634,7 @@ TOOLBAR_DrawPattern (LPRECT lpRect, NMTBCUSTOMDRAW *tbcd)
|
|||||||
INT cy = lpRect->bottom - lpRect->top;
|
INT cy = lpRect->bottom - lpRect->top;
|
||||||
clrTextOld = SetTextColor(hdc, tbcd->clrBtnHighlight);
|
clrTextOld = SetTextColor(hdc, tbcd->clrBtnHighlight);
|
||||||
clrBkOld = SetBkColor(hdc, tbcd->clrBtnFace);
|
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);
|
SetBkColor(hdc, clrBkOld);
|
||||||
SetTextColor(hdc, clrTextOld);
|
SetTextColor(hdc, clrTextOld);
|
||||||
SelectObject (hdc, hbr);
|
SelectObject (hdc, hbr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user