COMCTL32: Use DT_NOPREFIX when drawing text in single-line list view controls
Zach Gorman
zach at archetypeauction.com
Sun Nov 14 15:42:46 CST 2004
Changelog:
Add the DT_NOPREFIX flag when calling DrawText() for single-line
listview controls. This prevents ampersands from being treated
as escape characters causing the following character to be underlined.
Index: listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.396
diff -u -r1.396 listview.c
--- listview.c 6 Nov 2004 03:49:03 -0000 1.396
+++ listview.c 14 Nov 2004 20:51:07 -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_VCENTER | DT_EDITCONTROL | DT_SINGLELINE | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS)
+#define LV_SL_DT_FLAGS (DT_VCENTER | DT_NOPREFIX | 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
More information about the wine-patches
mailing list