From ba5d267b70f17a11fc2d1c5e8825f63426b4cd23 Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Mon, 13 Sep 2004 19:17:35 +0000 Subject: [PATCH] Make sure TreeView gets redrawn after calling EnsureVisible. --- dlls/comctl32/treeview.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index c8c929ea85b..69edf2adba9 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -4436,8 +4436,7 @@ TREEVIEW_SetFirstVisible(TREEVIEW_INFO *infoPtr, 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); } } } -- 2.11.4.GIT