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
cbd6e05e
Commit
cbd6e05e
authored
Jul 14, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Simplify double-click listview handler.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ab313dd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
childwnd.c
programs/regedit/childwnd.c
+2
-6
No files found.
programs/regedit/childwnd.c
View file @
cbd6e05e
...
...
@@ -347,12 +347,8 @@ static int listview_notify(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam
case
NM_DBLCLK
:
{
NMITEMACTIVATE
*
nmitem
=
(
NMITEMACTIVATE
*
)
lParam
;
LVHITTESTINFO
info
;
info
.
pt
.
x
=
nmitem
->
ptAction
.
x
;
info
.
pt
.
y
=
nmitem
->
ptAction
.
y
;
if
(
SendMessageW
(
g_pChildWnd
->
hListWnd
,
LVM_HITTEST
,
0
,
(
LPARAM
)
&
info
)
!=
-
1
)
if
(
nmitem
->
iItem
!=
-
1
)
{
LVITEMW
item
;
...
...
@@ -362,7 +358,7 @@ static int listview_notify(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam
item
.
state
=
LVIS_FOCUSED
|
LVIS_SELECTED
;
item
.
stateMask
=
LVIS_FOCUSED
|
LVIS_SELECTED
;
SendMessageW
(
g_pChildWnd
->
hListWnd
,
LVM_SETITEMSTATE
,
info
.
iItem
,
(
LPARAM
)
&
item
);
SendMessageW
(
g_pChildWnd
->
hListWnd
,
LVM_SETITEMSTATE
,
nmitem
->
iItem
,
(
LPARAM
)
&
item
);
SendMessageW
(
hFrameWnd
,
WM_COMMAND
,
ID_EDIT_MODIFY
,
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