From f804141345b08a6e1116e3b765052c05d8945730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 21 Oct 2005 17:15:53 +0000 Subject: [PATCH] Martijn Vernooij Work around continuous repainting of treeview control. Fixes bug 493. svn path=/trunk/; revision=18657 --- reactos/lib/comctl32/treeview.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/lib/comctl32/treeview.c b/reactos/lib/comctl32/treeview.c index e6cd167bd2f..5aab52ff949 100644 --- a/reactos/lib/comctl32/treeview.c +++ b/reactos/lib/comctl32/treeview.c @@ -2821,8 +2821,6 @@ TREEVIEW_Refresh(TREEVIEW_INFO *infoPtr, HDC hdc, RECT *rc) } } - TREEVIEW_UpdateScrollBars(infoPtr); - if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT) infoPtr->cdmode = TREEVIEW_SendCustomDrawNotify(infoPtr, CDDS_POSTPAINT, hdc, rect); @@ -3337,6 +3335,7 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem, } } } + TREEVIEW_UpdateScrollBars(infoPtr); return TRUE; }