hide horizontal scrollbar if edit control is empty

Lauri Tulmin lauri_ at ut.ee
Tue Jan 18 18:11:45 CST 2005


Hide horizontal scrollbar of empty edit control. Real win seems to do the 
same thing.
-------------- next part --------------
Index: dlls/user/edit.c
===================================================================
RCS file: /home/wine/wine/dlls/user/edit.c,v
retrieving revision 1.12
diff -u -p -r1.12 edit.c
--- dlls/user/edit.c	17 Jan 2005 19:31:48 -0000	1.12
+++ dlls/user/edit.c	18 Jan 2005 23:25:22 -0000
@@ -1055,6 +1055,9 @@ static void EDIT_BuildLineDefs_ML(EDITST
 	if (istart == iend && delta == 0)
 		return;
 
+	if (!strlenW(es->text)) 
+		es->text_width = 0;
+
 	dc = GetDC(es->hwndSelf);
 	if (es->font)
 		old_font = SelectObject(dc, es->font);


More information about the wine-patches mailing list