fix text alignment in listview

Dimitrie O. Paun dpaun at rogers.com
Tue May 27 19:51:27 CDT 2003


ChangeLog
  Align the text vertically in single line labels (spotted by BiGgUn).

Index: dlls/comctl32/listview.c
===================================================================
RCS file: /var/cvs/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	28 May 2003 00:47:23 -0000
@@ -347,7 +347,7 @@
 /* Standard DrawText flags */
 #define LV_ML_DT_FLAGS  (DT_TOP | DT_NOPREFIX | DT_EDITCONTROL | DT_CENTER | DT_WORDBREAK | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS)
 #define LV_FL_DT_FLAGS  (DT_TOP | DT_NOPREFIX | DT_EDITCONTROL | DT_CENTER | DT_WORDBREAK | DT_NOCLIP)
-#define LV_SL_DT_FLAGS  (DT_TOP | DT_EDITCONTROL | DT_SINGLELINE | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS)
+#define LV_SL_DT_FLAGS  (DT_VCENTER | DT_EDITCONTROL | DT_SINGLELINE | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS)
 
 /* The time in milliseconds to reset the search in the list */
 #define KEY_DELAY       450



-- 
Dimi.




More information about the wine-patches mailing list