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
31963d7d
Commit
31963d7d
authored
Aug 31, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Aug 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Restore the cursor position after moving it.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53b703d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
listview.c
dlls/comctl32/tests/listview.c
+3
-0
tooltips.c
dlls/comctl32/tests/tooltips.c
+4
-1
No files found.
dlls/comctl32/tests/listview.c
View file @
31963d7d
...
...
@@ -5765,6 +5765,7 @@ static void test_oneclickactivate(void)
HWND
hwnd
,
fg
;
RECT
rect
;
INT
r
;
POINT
orig_pos
;
hwnd
=
CreateWindowExA
(
0
,
"SysListView32"
,
"foo"
,
WS_VISIBLE
|
WS_CHILD
|
LVS_LIST
,
10
,
10
,
100
,
200
,
hwndparent
,
NULL
,
NULL
,
NULL
);
...
...
@@ -5791,6 +5792,7 @@ static void test_oneclickactivate(void)
ok
(
r
==
0
,
"should not fail
\n
"
);
GetWindowRect
(
hwnd
,
&
rect
);
GetCursorPos
(
&
orig_pos
);
SetCursorPos
(
rect
.
left
+
5
,
rect
.
top
+
5
);
flush_events
();
r
=
SendMessageA
(
hwnd
,
WM_MOUSEMOVE
,
MAKELONG
(
1
,
1
),
0
);
...
...
@@ -5810,6 +5812,7 @@ static void test_oneclickactivate(void)
expect
(
1
,
r
);
DestroyWindow
(
hwnd
);
SetCursorPos
(
orig_pos
.
x
,
orig_pos
.
y
);
}
static
void
test_callback_mask
(
void
)
...
...
dlls/comctl32/tests/tooltips.c
View file @
31963d7d
...
...
@@ -152,6 +152,7 @@ static void test_customdraw(void) {
DWORD
iterationNumber
;
WNDCLASSA
wc
;
LRESULT
lResult
;
POINT
orig_pos
;
/* Create a class to use the custom draw wndproc */
wc
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
...
...
@@ -166,6 +167,8 @@ static void test_customdraw(void) {
wc
.
lpfnWndProc
=
custom_draw_wnd_proc
;
RegisterClassA
(
&
wc
);
GetCursorPos
(
&
orig_pos
);
for
(
iterationNumber
=
0
;
iterationNumber
<
sizeof
(
expectedResults
)
/
sizeof
(
expectedResults
[
0
]);
iterationNumber
++
)
{
...
...
@@ -238,7 +241,7 @@ static void test_customdraw(void) {
DestroyWindow
(
parent
);
}
SetCursorPos
(
orig_pos
.
x
,
orig_pos
.
y
);
}
static
const
CHAR
testcallbackA
[]
=
"callback"
;
...
...
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