Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a4ed7a10
Commit
a4ed7a10
authored
Oct 08, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Pass VK_DELETE messages to Listview/Treeview child windows.
parent
bcc1fda7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
framewnd.c
programs/regedit/framewnd.c
+9
-3
No files found.
programs/regedit/framewnd.c
View file @
a4ed7a10
...
...
@@ -681,7 +681,9 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
break
;
}
case
ID_EDIT_DELETE
:
if
(
GetFocus
()
==
g_pChildWnd
->
hTreeWnd
)
{
{
HWND
hWndDelete
=
GetFocus
();
if
(
hWndDelete
==
g_pChildWnd
->
hTreeWnd
)
{
WCHAR
*
keyPath
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hKeyRoot
);
if
(
keyPath
==
0
||
*
keyPath
==
0
)
{
MessageBeep
(
MB_ICONHAND
);
...
...
@@ -689,7 +691,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
DeleteNode
(
g_pChildWnd
->
hTreeWnd
,
0
);
}
HeapFree
(
GetProcessHeap
(),
0
,
keyPath
);
}
else
if
(
GetFocus
()
==
g_pChildWnd
->
hListWnd
)
{
}
else
if
(
hWndDelete
==
g_pChildWnd
->
hListWnd
)
{
WCHAR
*
keyPath
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hKeyRoot
);
curIndex
=
ListView_GetNextItem
(
g_pChildWnd
->
hListWnd
,
-
1
,
LVNI_SELECTED
);
while
(
curIndex
!=
-
1
)
{
...
...
@@ -713,8 +715,12 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
}
RefreshListView
(
g_pChildWnd
->
hListWnd
,
hKeyRoot
,
keyPath
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
keyPath
);
}
}
else
if
(
IsChild
(
g_pChildWnd
->
hTreeWnd
,
hWndDelete
)
||
IsChild
(
g_pChildWnd
->
hListWnd
,
hWndDelete
))
{
SendMessage
(
hWndDelete
,
WM_KEYDOWN
,
VK_DELETE
,
0
);
}
break
;
}
case
ID_EDIT_MODIFY
:
{
LPCWSTR
valueName
=
GetValueName
(
g_pChildWnd
->
hListWnd
);
...
...
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