Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9c93c484
Commit
9c93c484
authored
Jun 14, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Use hourglass cursor for better feedback when expanding nodes.
- Turn off redrawing when expanding to make it faster.
parent
197b5e31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
treeview.c
programs/regedit/treeview.c
+5
-0
No files found.
programs/regedit/treeview.c
View file @
9c93c484
...
@@ -249,6 +249,7 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
...
@@ -249,6 +249,7 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
LPCTSTR
keyPath
;
LPCTSTR
keyPath
;
LPTSTR
Name
;
LPTSTR
Name
;
LONG
errCode
;
LONG
errCode
;
HCURSOR
hcursorOld
;
static
int
expanding
;
static
int
expanding
;
if
(
expanding
)
return
FALSE
;
if
(
expanding
)
return
FALSE
;
...
@@ -256,6 +257,8 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
...
@@ -256,6 +257,8 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
return
TRUE
;
return
TRUE
;
}
}
expanding
=
TRUE
;
expanding
=
TRUE
;
hcursorOld
=
SetCursor
(
LoadCursor
(
NULL
,
IDC_WAIT
));
SendMessage
(
hwndTV
,
WM_SETREDRAW
,
FALSE
,
0
);
keyPath
=
GetItemPath
(
hwndTV
,
pnmtv
->
itemNew
.
hItem
,
&
hRoot
);
keyPath
=
GetItemPath
(
hwndTV
,
pnmtv
->
itemNew
.
hItem
,
&
hRoot
);
if
(
!
keyPath
)
goto
done
;
if
(
!
keyPath
)
goto
done
;
...
@@ -291,6 +294,8 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
...
@@ -291,6 +294,8 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
HeapFree
(
GetProcessHeap
(),
0
,
Name
);
HeapFree
(
GetProcessHeap
(),
0
,
Name
);
done:
done:
SendMessage
(
hwndTV
,
WM_SETREDRAW
,
TRUE
,
0
);
SetCursor
(
hcursorOld
);
expanding
=
FALSE
;
expanding
=
FALSE
;
return
TRUE
;
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment