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
b94f63ef
Commit
b94f63ef
authored
Oct 16, 2009
by
Rein Klazes
Committed by
Alexandre Julliard
Oct 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Handle MN_GETHMENU in PopupMenuWndProc.
parent
7f8e4e27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
menu.c
dlls/user32/menu.c
+1
-0
menu.c
dlls/user32/tests/menu.c
+7
-0
No files found.
dlls/user32/menu.c
View file @
b94f63ef
...
...
@@ -3509,6 +3509,7 @@ static LRESULT WINAPI PopupMenuWndProc( HWND hwnd, UINT message, WPARAM wParam,
break
;
case
MM_GETMENUHANDLE
:
case
MN_GETHMENU
:
return
GetWindowLongPtrW
(
hwnd
,
0
);
default:
...
...
dlls/user32/tests/menu.c
View file @
b94f63ef
...
...
@@ -150,10 +150,12 @@ static int gflag_initmenupopup,
static
LRESULT
WINAPI
menu_ownerdraw_wnd_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
static
HMENU
hmenupopup
;
switch
(
msg
)
{
case
WM_INITMENUPOPUP
:
gflag_initmenupopup
++
;
hmenupopup
=
(
HMENU
)
wparam
;
break
;
case
WM_ENTERMENULOOP
:
gflag_entermenuloop
++
;
...
...
@@ -229,6 +231,11 @@ static LRESULT WINAPI menu_ownerdraw_wnd_proc(HWND hwnd, UINT msg,
{
ok
(
lparam
||
broken
(
!
lparam
),
/* win9x, nt4 */
"Menu window handle is NULL!
\n
"
);
if
(
lparam
)
{
HMENU
hmenu
=
(
HMENU
)
SendMessageA
(
(
HWND
)
lparam
,
MN_GETHMENU
,
0
,
0
);
ok
(
hmenupopup
==
hmenu
,
"MN_GETHMENU returns %p expected %p
\n
"
,
hmenu
,
hmenupopup
);
}
PostMessage
(
hwnd
,
WM_CANCELMODE
,
0
,
0
);
return
TRUE
;
}
...
...
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