Make sure TreeView gets redrawn after EnsureVisible

Vitaliy Margolen wine-patch at kievinfo.com
Sun Sep 12 11:09:21 CDT 2004


After call to EnsureVisible TreeView wasn't redrawn properly. Only selected item was drawn.

Vitaliy Margolen

changelog:
  dlls/comctl32/treeview.c
  - Make sure TreeView gets redrawn after calling EnsureVisible
-------------- next part --------------
Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.149
diff -u -r1.149 treeview.c
--- dlls/comctl32/treeview.c	25 Aug 2004 17:33:01 -0000	1.149
+++ dlls/comctl32/treeview.c	12 Sep 2004 16:04:56 -0000
@@ -4436,8 +4436,7 @@
 		SetScrollPos(infoPtr->hwnd, SB_VERT,
 		              newFirstVisible->visibleOrder, TRUE);
 
-	    ScrollWindow(infoPtr->hwnd, 0, scroll, NULL, NULL);
-	    UpdateWindow(infoPtr->hwnd);
+	    ScrollWindowEx(infoPtr->hwnd, 0, scroll, NULL, NULL, NULL, NULL, SW_ERASE | SW_INVALIDATE);
 	}
     }
 }


More information about the wine-patches mailing list