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
182b6fb5
Commit
182b6fb5
authored
Jul 12, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Update the status bar text when a treeview node is renamed.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
db11f739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
childwnd.c
programs/regedit/childwnd.c
+7
-5
No files found.
programs/regedit/childwnd.c
View file @
182b6fb5
...
...
@@ -454,18 +454,20 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
LPNMTVDISPINFOW
dispInfo
=
(
LPNMTVDISPINFOW
)
lParam
;
LPWSTR
path
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hRootKey
);
BOOL
res
=
RenameKey
(
hWnd
,
hRootKey
,
path
,
dispInfo
->
item
.
pszText
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
if
(
res
)
{
TVITEMEXW
item
;
LPWSTR
fullPath
=
GetPathFullPath
(
g_pChildWnd
->
hTreeWnd
,
dispInfo
->
item
.
pszText
);
TVITEMW
item
;
WCHAR
*
fullPath
;
item
.
mask
=
TVIF_HANDLE
|
TVIF_TEXT
;
item
.
hItem
=
(
HTREEITEM
)
SendMessageW
(
g_pChildWnd
->
hTreeWnd
,
TVM_GETNEXTITEM
,
TVGN_CARET
,
0
)
;
item
.
hItem
=
dispInfo
->
item
.
hItem
;
item
.
pszText
=
dispInfo
->
item
.
pszText
;
SendMessageW
(
g_pChildWnd
->
hTreeWnd
,
TVM_SETITEMW
,
0
,
(
LPARAM
)
&
item
);
path
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hRootKey
);
fullPath
=
GetPathFullPath
(
g_pChildWnd
->
hTreeWnd
,
path
);
SendMessageW
(
hStatusBar
,
SB_SETTEXTW
,
0
,
(
LPARAM
)
fullPath
);
HeapFree
(
GetProcessHeap
(),
0
,
fullPath
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
}
HeapFree
(
GetProcessHeap
(),
0
,
path
);
SetWindowLongPtrW
(
g_pChildWnd
->
hTreeWnd
,
GWLP_USERDATA
,
0
);
return
res
;
}
...
...
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