mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
merge patch from wine by Robert Shearman (http://www.winehq.org/hypermail/wine-patches/2004/06/0108.html)
svn path=/trunk/; revision=9962
This commit is contained in:
parent
ecae0d0647
commit
d0ea8e8ce1
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue