From 85b59ff6cea05462d89cce77c3d14928772af7dd Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Wed, 9 Jun 2010 13:31:02 +0000 Subject: [PATCH] I don't like this, but add the treeview refresh hack. I don't see this bug on my (windows) build but others are reporting it still happens on the (linux) build machine iso. Maybe it's because linux is akin to the devil? Yes, I like this, let's blame linux! svn path=/trunk/; revision=47712 --- reactos/dll/win32/comctl32/comctl32_ros.diff | 19 +++++++++++++++++++ reactos/dll/win32/comctl32/treeview.c | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/comctl32/comctl32_ros.diff b/reactos/dll/win32/comctl32/comctl32_ros.diff index c4f34bf1890..8b0db1fae71 100644 --- a/reactos/dll/win32/comctl32/comctl32_ros.diff +++ b/reactos/dll/win32/comctl32/comctl32_ros.diff @@ -120,3 +120,22 @@ Index: tooltips.c + } return 0; } + +Index: treeview.c +=================================================================== +--- treeview.c (revision 38890) ++++ treeview.c (working copy) +@@ -2830,7 +2830,12 @@ + } + } + +- TREEVIEW_UpdateScrollBars(infoPtr); ++ // ++ // This is correct, but is causes and infinite loop of WM_PAINT messages, resulting ++ // in continuous painting of the scroll bar in reactos. Comment out until the real ++ // bug is found ++ // ++ //TREEVIEW_UpdateScrollBars(infoPtr); + + if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT) + infoPtr->cdmode = diff --git a/reactos/dll/win32/comctl32/treeview.c b/reactos/dll/win32/comctl32/treeview.c index f1ff9c545ac..8d2a6f3d1ff 100644 --- a/reactos/dll/win32/comctl32/treeview.c +++ b/reactos/dll/win32/comctl32/treeview.c @@ -2865,7 +2865,12 @@ TREEVIEW_Refresh(TREEVIEW_INFO *infoPtr, HDC hdc, const RECT *rc) } } - TREEVIEW_UpdateScrollBars(infoPtr); + // + // This is correct, but is causes and infinite loop of WM_PAINT messages, resulting + // in continuous painting of the scroll bar in reactos. Comment out until the real + // bug is found + // + //TREEVIEW_UpdateScrollBars(infoPtr); if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT) infoPtr->cdmode = -- 2.17.1