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
cd860959
Commit
cd860959
authored
Apr 02, 2012
by
Daniel Jelinski
Committed by
Alexandre Julliard
Apr 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Added tests for treeview TVM_HITTEST message.
parent
88949b2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
treeview.c
dlls/comctl32/tests/treeview.c
+42
-0
No files found.
dlls/comctl32/tests/treeview.c
View file @
cd860959
...
...
@@ -1788,6 +1788,47 @@ static void test_TVM_GETNEXTITEM(void)
DestroyWindow
(
hTree
);
}
static
void
test_TVM_HITTEST
(
void
)
{
HWND
hTree
;
LRESULT
ret
;
RECT
rc
;
TVHITTESTINFO
ht
;
hTree
=
create_treeview_control
(
0
);
fill_tree
(
hTree
);
*
(
HTREEITEM
*
)
&
rc
=
hRoot
;
ret
=
SendMessage
(
hTree
,
TVM_GETITEMRECT
,
TRUE
,
(
LPARAM
)
&
rc
);
expect
(
TRUE
,
(
BOOL
)
ret
);
ht
.
pt
.
x
=
rc
.
left
-
1
;
ht
.
pt
.
y
=
rc
.
top
;
ret
=
SendMessage
(
hTree
,
TVM_HITTEST
,
0
,
(
LPARAM
)
&
ht
);
ok
((
HTREEITEM
)
ret
==
hRoot
,
"got %p, expected %p
\n
"
,
(
HTREEITEM
)
ret
,
hRoot
);
ok
(
ht
.
hItem
==
hRoot
,
"got %p, expected %p
\n
"
,
ht
.
hItem
,
hRoot
);
ok
(
ht
.
flags
==
TVHT_ONITEMBUTTON
,
"got %d, expected %d
\n
"
,
ht
.
flags
,
TVHT_ONITEMBUTTON
);
ret
=
SendMessageA
(
hTree
,
TVM_EXPAND
,
TVE_EXPAND
,
(
LPARAM
)
hRoot
);
expect
(
TRUE
,
(
BOOL
)
ret
);
*
(
HTREEITEM
*
)
&
rc
=
hChild
;
ret
=
SendMessage
(
hTree
,
TVM_GETITEMRECT
,
TRUE
,
(
LPARAM
)
&
rc
);
expect
(
TRUE
,
(
BOOL
)
ret
);
ht
.
pt
.
x
=
rc
.
left
-
1
;
ht
.
pt
.
y
=
rc
.
top
;
ret
=
SendMessage
(
hTree
,
TVM_HITTEST
,
0
,
(
LPARAM
)
&
ht
);
ok
((
HTREEITEM
)
ret
==
hChild
,
"got %p, expected %p
\n
"
,
(
HTREEITEM
)
ret
,
hChild
);
ok
(
ht
.
hItem
==
hChild
,
"got %p, expected %p
\n
"
,
ht
.
hItem
,
hChild
);
/* Wine returns item button here, but this item has no button */
todo_wine
ok
(
ht
.
flags
==
TVHT_ONITEMINDENT
,
"got %d, expected %d
\n
"
,
ht
.
flags
,
TVHT_ONITEMINDENT
);
DestroyWindow
(
hTree
);
}
START_TEST
(
treeview
)
{
HMODULE
hComctl32
;
...
...
@@ -1859,6 +1900,7 @@ START_TEST(treeview)
test_htreeitem_layout
();
test_TVS_CHECKBOXES
();
test_TVM_GETNEXTITEM
();
test_TVM_HITTEST
();
if
(
!
load_v6_module
(
&
ctx_cookie
,
&
hCtx
))
{
...
...
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