From d0ea8e8ce1fc42e9c430af51472a9acf993dd2d6 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 1 Jul 2004 23:56:04 +0000 Subject: [PATCH] merge patch from wine by Robert Shearman (http://www.winehq.org/hypermail/wine-patches/2004/06/0108.html) svn path=/trunk/; revision=9962 --- reactos/subsys/system/regedit/treeview.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/subsys/system/regedit/treeview.c b/reactos/subsys/system/regedit/treeview.c index 7131adb610e..c7cf2e8dcf6 100644 --- a/reactos/subsys/system/regedit/treeview.c +++ b/reactos/subsys/system/regedit/treeview.c @@ -203,6 +203,7 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv) LPCTSTR keyPath; LPTSTR Name; LONG errCode; + HCURSOR hcursorOld; static int expanding; if (expanding) return FALSE; @@ -210,6 +211,8 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv) return TRUE; } expanding = TRUE; + hcursorOld = SetCursor(LoadCursor(NULL, IDC_WAIT)); + SendMessage(hwndTV, WM_SETREDRAW, FALSE, 0); keyPath = GetItemPath(hwndTV, pnmtv->itemNew.hItem, &hRoot); if (!keyPath) goto done; @@ -249,6 +252,8 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv) HeapFree(GetProcessHeap(), 0, Name); done: + SendMessage(hwndTV, WM_SETREDRAW, TRUE, 0); + SetCursor(hcursorOld); expanding = FALSE; return TRUE;