Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c96dcd77
Commit
c96dcd77
authored
Feb 13, 2000
by
Martin Fuchs
Committed by
Alexandre Julliard
Feb 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display the system popup menu when clicking with the right mouse
button in the window caption.
parent
83ab5ae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
defwnd.c
windows/defwnd.c
+14
-9
No files found.
windows/defwnd.c
View file @
c96dcd77
...
...
@@ -217,15 +217,20 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
case
WM_CONTEXTMENU
:
if
(
wndPtr
->
dwStyle
&
WS_CHILD
)
SendMessageA
(
wndPtr
->
parent
->
hwndSelf
,
msg
,
wParam
,
lParam
);
else
if
(
wndPtr
->
hSysMenu
)
{
/*
TrackPopupMenu32(wndPtr->hSysMenu,TPM_LEFTALIGN | TPM_RETURNCMD,LOWORD(lParam),HIWORD(lParam),0,wndPtr->hwndSelf,NULL);
DestroyMenu32(wndPtr->hSysMenu);
*/
FIXME
(
"Display default popup menu
\n
"
);
/* Track system popup if click was in the caption area. */
}
else
if
(
wndPtr
->
hSysMenu
)
{
LONG
hitcode
;
POINT16
pt
=
MAKEPOINT16
(
lParam
);
ScreenToClient16
(
wndPtr
->
hwndSelf
,
&
pt
);
hitcode
=
NC_HandleNCHitTest
(
wndPtr
->
hwndSelf
,
pt
);
/* Track system popup if click was in the caption area. */
if
(
hitcode
==
HTCAPTION
||
hitcode
==
HTSYSMENU
)
TrackPopupMenu
(
GetSystemMenu
(
wndPtr
->
hwndSelf
,
FALSE
),
TPM_LEFTBUTTON
|
TPM_RIGHTBUTTON
,
pt
.
x
,
pt
.
y
,
0
,
wndPtr
->
hwndSelf
,
NULL
);
}
break
;
case
WM_NCACTIVATE
:
...
...
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