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
41222260
Commit
41222260
authored
Apr 16, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add test calling EndMenu from WM_ENTERMENULOOP.
parent
fba08e34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
msg.c
dlls/user32/tests/msg.c
+37
-0
No files found.
dlls/user32/tests/msg.c
View file @
41222260
...
...
@@ -1762,6 +1762,22 @@ static const struct message WmTrackPopupMenuEmpty[] = {
{
0
}
};
static
const
struct
message
WmTrackPopupMenuAbort
[]
=
{
{
HCBT_CREATEWND
,
hook
},
{
WM_ENTERMENULOOP
,
sent
|
wparam
|
lparam
,
TRUE
,
0
},
{
WM_INITMENU
,
sent
|
lparam
,
0
,
0
},
{
WM_INITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
0x0093
,
sent
|
optional
},
{
0x0094
,
sent
|
optional
},
{
0x0094
,
sent
|
optional
},
{
WM_CAPTURECHANGED
,
sent
},
{
HCBT_DESTROYWND
,
hook
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
0xffff0000
,
0
},
{
WM_EXITMENULOOP
,
sent
|
wparam
|
lparam
,
1
,
0
},
{
0
}
};
static
BOOL
after_end_dialog
,
test_def_id
,
paint_loop_done
;
static
int
sequence_cnt
,
sequence_size
;
static
struct
recvd_message
*
sequence
;
...
...
@@ -14342,6 +14358,19 @@ static LRESULT WINAPI cancel_popup_proc(HWND hwnd, UINT message, WPARAM wParam,
return
MsgCheckProc
(
FALSE
,
hwnd
,
message
,
wParam
,
lParam
);
}
static
LRESULT
WINAPI
cancel_init_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
ignore_message
(
message
))
return
0
;
switch
(
message
)
{
case
WM_ENTERMENULOOP
:
ok
(
EndMenu
()
==
TRUE
,
"EndMenu() failed
\n
"
);
break
;
}
return
MsgCheckProc
(
FALSE
,
hwnd
,
message
,
wParam
,
lParam
);
}
static
void
test_TrackPopupMenu
(
void
)
{
HWND
hwnd
;
...
...
@@ -14366,6 +14395,14 @@ static void test_TrackPopupMenu(void)
ok_sequence
(
WmTrackPopupMenu
,
"TrackPopupMenu"
,
TRUE
);
ok
(
ret
==
1
,
"TrackPopupMenu failed with error %i
\n
"
,
GetLastError
());
SetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
cancel_init_proc
);
flush_events
();
flush_sequence
();
ret
=
TrackPopupMenu
(
hpopupmenu
,
0
,
100
,
100
,
0
,
hwnd
,
NULL
);
ok_sequence
(
WmTrackPopupMenuAbort
,
"WmTrackPopupMenuAbort"
,
TRUE
);
ok
(
ret
==
TRUE
,
"TrackPopupMenu failed
\n
"
);
DestroyMenu
(
hpopupmenu
);
DestroyWindow
(
hwnd
);
}
...
...
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