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
4dc5a764
Commit
4dc5a764
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: Call TrackPopupMenu() from WM_CONTEXTMENU.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
583255f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
childwnd.c
programs/regedit/childwnd.c
+9
-7
No files found.
programs/regedit/childwnd.c
View file @
4dc5a764
...
...
@@ -292,6 +292,9 @@ static void set_last_key(HWND hwndTV)
}
}
#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
/*******************************************************************************
*
* FUNCTION: ChildWndProc(HWND, unsigned, WORD, LONG)
...
...
@@ -368,6 +371,12 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
draw_splitbar
(
hWnd
,
last_split
);
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
);
}
case
WM_KEYDOWN
:
if
(
wParam
==
VK_ESCAPE
)
if
(
GetCapture
()
==
hWnd
)
{
...
...
@@ -419,13 +428,6 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
case
NM_SETFOCUS
:
g_pChildWnd
->
nFocusPanel
=
0
;
break
;
case
NM_RCLICK
:
{
POINT
pt
;
GetCursorPos
(
&
pt
);
TrackPopupMenu
(
GetSubMenu
(
hPopupMenus
,
PM_NEW
),
TPM_RIGHTBUTTON
,
pt
.
x
,
pt
.
y
,
0
,
hFrameWnd
,
NULL
);
break
;
}
case
TVN_BEGINLABELEDITW
:
{
HKEY
hRootKey
;
LPWSTR
path
;
...
...
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