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
5f603f82
Commit
5f603f82
authored
Nov 07, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Nov 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix LB_ITEMFROMPOINT tests for listbox control.
parent
c32e02e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
listbox.c
dlls/user32/tests/listbox.c
+12
-3
No files found.
dlls/user32/tests/listbox.c
View file @
5f603f82
...
@@ -441,7 +441,12 @@ static void test_listbox_height(void)
...
@@ -441,7 +441,12 @@ static void test_listbox_height(void)
static
void
test_itemfrompoint
(
void
)
static
void
test_itemfrompoint
(
void
)
{
{
HWND
hList
=
CreateWindow
(
"ListBox"
,
"list test"
,
0
,
/* WS_POPUP is required in order to have a more accurate size calculation (
without caption). LBS_NOINTEGRALHEIGHT is required in order to test
behavior of partially-displayed item.
*/
HWND
hList
=
CreateWindow
(
"ListBox"
,
"list test"
,
WS_VISIBLE
|
WS_POPUP
|
LBS_NOINTEGRALHEIGHT
,
1
,
1
,
600
,
100
,
NULL
,
NULL
,
NULL
,
NULL
);
1
,
1
,
600
,
100
,
NULL
,
NULL
,
NULL
,
NULL
);
LONG
r
,
id
;
LONG
r
,
id
;
RECT
rc
;
RECT
rc
;
...
@@ -464,10 +469,14 @@ static void test_itemfrompoint(void)
...
@@ -464,10 +469,14 @@ static void test_itemfrompoint(void)
r
=
SendMessage
(
hList
,
LB_ITEMFROMPOINT
,
0
,
MAKELPARAM
(
/* x */
30
,
/* y */
30
));
r
=
SendMessage
(
hList
,
LB_ITEMFROMPOINT
,
0
,
MAKELPARAM
(
/* x */
30
,
/* y */
30
));
ok
(
r
==
0x1
,
"ret %x
\n
"
,
r
);
ok
(
r
==
0x1
,
"ret %x
\n
"
,
r
);
r
=
SendMessage
(
hList
,
LB_ITEMFROMPOINT
,
0
,
MAKELPARAM
(
/* x */
30
,
/* y */
37
));
r
=
SendMessage
(
hList
,
LB_ITEMFROMPOINT
,
0
,
MAKELPARAM
(
/* x */
30
,
/* y */
601
));
ok
(
r
==
0x10001
,
"ret %x
\n
"
,
r
);
ok
(
r
==
0x10001
,
"ret %x
\n
"
,
r
);
/* Resize control so that below assertions about sizes are valid */
r
=
SendMessage
(
hList
,
LB_GETITEMRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
r
==
1
,
"ret %x
\n
"
,
r
);
r
=
MoveWindow
(
hList
,
1
,
1
,
600
,
(
rc
.
bottom
-
rc
.
top
+
1
)
*
9
/
2
,
TRUE
);
ok
(
r
!=
0
,
"ret %x
\n
"
,
r
);
id
=
SendMessage
(
hList
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
"hi2"
);
id
=
SendMessage
(
hList
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
"hi2"
);
ok
(
id
==
2
,
"item id wrong
\n
"
);
ok
(
id
==
2
,
"item id wrong
\n
"
);
...
...
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