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
aa39614e
Commit
aa39614e
authored
Oct 06, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Test TrackMouseEvent flags when LVS_EX_ONECLICKACTIVATE style is used.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
parent
4dd26ee8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
listview.c
dlls/comctl32/tests/listview.c
+29
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
aa39614e
...
...
@@ -5745,11 +5745,28 @@ static void test_header_proc(void)
DestroyWindow
(
hwnd
);
}
static
void
flush_events
(
void
)
{
MSG
msg
;
int
diff
=
200
;
int
min_timeout
=
100
;
DWORD
time
=
GetTickCount
()
+
diff
;
while
(
diff
>
0
)
{
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
diff
=
time
-
GetTickCount
();
}
}
static
void
test_oneclickactivate
(
void
)
{
TRACKMOUSEEVENT
track
;
char
item1
[]
=
"item1"
;
LVITEMA
item
;
HWND
hwnd
,
fg
;
RECT
rect
;
INT
r
;
hwnd
=
CreateWindowExA
(
0
,
"SysListView32"
,
"foo"
,
WS_VISIBLE
|
WS_CHILD
|
LVS_LIST
,
...
...
@@ -5775,6 +5792,18 @@ static void test_oneclickactivate(void)
r
=
SendMessageA
(
hwnd
,
LVM_INSERTITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
r
==
0
,
"should not fail
\n
"
);
GetWindowRect
(
hwnd
,
&
rect
);
SetCursorPos
(
rect
.
left
+
5
,
rect
.
top
+
5
);
flush_events
();
r
=
SendMessageA
(
hwnd
,
WM_MOUSEMOVE
,
MAKELONG
(
1
,
1
),
0
);
expect
(
0
,
r
);
track
.
cbSize
=
sizeof
(
track
);
track
.
dwFlags
=
TME_QUERY
;
_TrackMouseEvent
(
&
track
);
ok
(
track
.
hwndTrack
==
hwnd
,
"hwndTrack != hwnd
\n
"
);
ok
(
track
.
dwFlags
==
TME_LEAVE
,
"dwFlags = %x
\n
"
,
track
.
dwFlags
);
r
=
SendMessageA
(
hwnd
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
expect
(
0
,
r
);
r
=
SendMessageA
(
hwnd
,
WM_MOUSEHOVER
,
MAKELONG
(
1
,
1
),
0
);
...
...
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