Make treeview expand button match native
Mike Hearn
mike at theoretic.com
Sun Feb 15 17:26:14 CST 2004
Mike Hearn <mike at theoretic.com>
Grow the treeview control expander button by 1px in each direction to
match the native look
Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.143
diff -u -r1.143 treeview.c
--- dlls/comctl32/treeview.c 12 Feb 2004 20:06:04 -0000 1.143
+++ dlls/comctl32/treeview.c 15 Feb 2004 23:20:38 -0000
@@ -2289,8 +2289,8 @@
HBRUSH hbr = CreateSolidBrush(infoPtr->clrBk);
HBRUSH hbrOld = SelectObject(hdc, hbr);
- Rectangle(hdc, centerx - rectsize, centery - rectsize,
- centerx + rectsize + 1, centery + rectsize + 1);
+ Rectangle(hdc, centerx - rectsize - 1, centery - rectsize - 1,
+ centerx + rectsize + 2, centery + rectsize + 2);
SelectObject(hdc, hbrOld);
DeleteObject(hbr);
More information about the wine-patches
mailing list