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
fe38c9ab
Commit
fe38c9ab
authored
May 29, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
May 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Move the listview's NM_SETFOCUS handling to listview.c.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a1d3a7f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
childwnd.c
programs/regedit/childwnd.c
+4
-8
listview.c
programs/regedit/listview.c
+3
-0
No files found.
programs/regedit/childwnd.c
View file @
fe38c9ab
...
...
@@ -471,14 +471,10 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
default:
return
0
;
/* goto def; */
}
}
else
if
(((
int
)
wParam
==
LIST_WINDOW
)
&&
(
g_pChildWnd
!=
NULL
))
{
if
(((
LPNMHDR
)
lParam
)
->
code
==
NM_SETFOCUS
)
{
g_pChildWnd
->
nFocusPanel
=
1
;
}
else
if
(
!
SendMessageW
(
g_pChildWnd
->
hListWnd
,
WM_NOTIFY_REFLECT
,
wParam
,
lParam
))
{
goto
def
;
}
}
}
else
if
((
int
)
wParam
==
LIST_WINDOW
&&
g_pChildWnd
!=
NULL
)
{
if
(
!
SendMessageW
(
g_pChildWnd
->
hListWnd
,
WM_NOTIFY_REFLECT
,
wParam
,
lParam
))
goto
def
;
}
break
;
case
WM_SIZE
:
...
...
programs/regedit/listview.c
View file @
fe38c9ab
...
...
@@ -420,6 +420,9 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
SendMessageW
(
hFrameWnd
,
WM_COMMAND
,
ID_EDIT_MODIFY
,
0
);
}
break
;
case
NM_SETFOCUS
:
g_pChildWnd
->
nFocusPanel
=
1
;
break
;
case
NM_DBLCLK
:
{
NMITEMACTIVATE
*
nmitem
=
(
LPNMITEMACTIVATE
)
lParam
;
LVHITTESTINFO
info
;
...
...
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