reactos/subsys/system/regedit
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;