Listview alignment fix
BiGgUn
fbiggun at hotmail.com
Mon May 26 16:48:55 CDT 2003
Changelog:
Fix label alignment with icon bottom.
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.353
diff -u -r1.353 listview.c
--- dlls/comctl32/listview.c 22 May 2003 03:37:10 -0000 1.353
+++ dlls/comctl32/listview.c 26 May 2003 21:40:55 -0000
@@ -322,6 +322,7 @@
#define ICON_BOTTOM_PADDING 4
#define LABEL_HOR_PADDING 5
#define LABEL_VERT_PADDING 7
+#define LABEL_TOP_PADDING 3
#define ICON_LR_PADDING 16
#define ICON_LR_HALF (ICON_LR_PADDING/2)
@@ -3632,6 +3633,7 @@
else rcLabel.left += LABEL_HOR_PADDING;
}
else if (uFormat & DT_RIGHT) rcLabel.right -= LABEL_HOR_PADDING;
+ if (uView != LVS_ICON) rcLabel.top += LABEL_TOP_PADDING;
DrawTextW(hdc, lvItem.pszText, -1, &rcLabel, uFormat);
postpaint:
More information about the wine-patches
mailing list