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
5a391e18
Commit
5a391e18
authored
Jul 13, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use UpdateStatusBar() instead of updating the text manually.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5026298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
childwnd.c
programs/regedit/childwnd.c
+2
-16
No files found.
programs/regedit/childwnd.c
View file @
5a391e18
...
...
@@ -158,17 +158,6 @@ LPWSTR GetItemFullPath(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
return
ret
;
}
static
LPWSTR
GetPathFullPath
(
HWND
hwndTV
,
LPWSTR
path
)
{
LPWSTR
parts
[
2
];
LPWSTR
ret
;
parts
[
0
]
=
GetPathRoot
(
hwndTV
,
0
,
TRUE
);
parts
[
1
]
=
path
;
ret
=
CombinePaths
((
LPCWSTR
*
)
parts
,
2
);
HeapFree
(
GetProcessHeap
(),
0
,
parts
[
0
]);
return
ret
;
}
static
void
OnTreeSelectionChanged
(
HWND
hwndTV
,
HWND
hwndLV
,
HTREEITEM
hItem
,
BOOL
bRefreshLV
)
{
if
(
bRefreshLV
)
{
...
...
@@ -325,7 +314,6 @@ static int treeview_notify(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam
if
(
res
)
{
TVITEMW
item
;
WCHAR
*
fullPath
;
item
.
mask
=
TVIF_HANDLE
|
TVIF_TEXT
;
item
.
hItem
=
dispInfo
->
item
.
hItem
;
...
...
@@ -334,11 +322,9 @@ static int treeview_notify(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam
path
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hRootKey
);
update_listview_path
(
path
);
fullPath
=
GetPathFullPath
(
g_pChildWnd
->
hTreeWnd
,
path
);
SendMessageW
(
hStatusBar
,
SB_SETTEXTW
,
0
,
(
LPARAM
)
fullPath
);
HeapFree
(
GetProcessHeap
(),
0
,
fullPath
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
UpdateStatusBar
();
}
SetWindowLongPtrW
(
g_pChildWnd
->
hTreeWnd
,
GWLP_USERDATA
,
0
);
...
...
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