Listview alignment fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux