Commit in reactos/subsys/system/regedit on MAIN
treeview.c+51.7 -> 1.8
merge patch from wine by Robert Shearman (http://www.winehq.org/hypermail/wine-patches/2004/06/0108.html)

reactos/subsys/system/regedit
treeview.c 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- treeview.c	21 Jun 2004 07:48:11 -0000	1.7
+++ treeview.c	1 Jul 2004 23:56:04 -0000	1.8
@@ -203,6 +203,7 @@
     LPCTSTR keyPath;
     LPTSTR Name;
     LONG errCode;
+    HCURSOR hcursorOld;
 
     static int expanding;
     if (expanding) return FALSE;
@@ -210,6 +211,8 @@
         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 @@
     HeapFree(GetProcessHeap(), 0, Name);
 
 done:
+    SendMessage(hwndTV, WM_SETREDRAW, TRUE, 0);
+    SetCursor(hcursorOld);
     expanding = FALSE;
 
     return TRUE;
CVSspam 0.2.8