projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecae0d0
)
merge patch from wine by Robert Shearman (http://www.winehq.org/hypermail/wine-patche...
author
Thomas Bluemel
<thomas@reactsoft.com>
Thu, 1 Jul 2004 23:56:04 +0000
(23:56 +0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Thu, 1 Jul 2004 23:56:04 +0000
(23:56 +0000)
svn path=/trunk/; revision=9962
reactos/subsys/system/regedit/treeview.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/regedit/treeview.c
b/reactos/subsys/system/regedit/treeview.c
index
7131adb
..
c7cf2e8
100644
(file)
--- 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;