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
ab0d0c6e
Commit
ab0d0c6e
authored
Apr 17, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Select the targeted treeview item on right mouse click.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4dc5a764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
childwnd.c
programs/regedit/childwnd.c
+8
-3
No files found.
programs/regedit/childwnd.c
View file @
ab0d0c6e
...
...
@@ -372,9 +372,14 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
break
;
case
WM_CONTEXTMENU
:
{
int
x
=
GET_X_LPARAM
(
lParam
);
int
y
=
GET_Y_LPARAM
(
lParam
);
TrackPopupMenu
(
GetSubMenu
(
hPopupMenus
,
PM_NEW
),
TPM_RIGHTBUTTON
,
x
,
y
,
0
,
hFrameWnd
,
NULL
);
POINT
pt
=
{
GET_X_LPARAM
(
lParam
),
GET_Y_LPARAM
(
lParam
)};
TVHITTESTINFO
ht
;
ht
.
pt
=
pt
;
ScreenToClient
(
g_pChildWnd
->
hTreeWnd
,
&
ht
.
pt
);
if
(
SendMessageW
(
g_pChildWnd
->
hTreeWnd
,
TVM_HITTEST
,
0
,
(
LPARAM
)
&
ht
))
SendMessageW
(
g_pChildWnd
->
hTreeWnd
,
TVM_SELECTITEM
,
TVGN_CARET
,
(
LPARAM
)
ht
.
hItem
);
TrackPopupMenu
(
GetSubMenu
(
hPopupMenus
,
PM_NEW
),
TPM_RIGHTBUTTON
,
pt
.
x
,
pt
.
y
,
0
,
hFrameWnd
,
NULL
);
}
case
WM_KEYDOWN
:
...
...
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