[PATCH] Treeview: force recalculation of item after text change

gerard patel gerard.patel at asi.fr
Wed Apr 4 17:29:45 CDT 2001


Seen with the address book of Eudora 4.

ChangeLog:

	* dlls/comctl32/treeview.c
                  After an item text change, the rectangle width should be recalculated

Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.90
diff -u -r1.90 treeview.c
--- dlls/comctl32/treeview.c    2001/04/04 00:09:23     1.90
+++ dlls/comctl32/treeview.c    2001/04/04 22:14:14
@@ -919,6 +919,7 @@
     /* Do this first in case it fails. */
     if (tvItem->mask & TVIF_TEXT)
     {
+        wineItem->textWidth = 0; /* force width recalculation */
        if (tvItem->pszText != LPSTR_TEXTCALLBACKA)
        {
            int len = lstrlenA(tvItem->pszText) + 1; 






More information about the wine-patches mailing list