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
09d6a6c8
Commit
09d6a6c8
authored
Apr 22, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Additional tests for LVM_GETSUBITEMRECT.
parent
cf1bfc8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
listview.c
dlls/comctl32/tests/listview.c
+41
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
09d6a6c8
...
...
@@ -847,6 +847,7 @@ static void test_create(void)
LONG_PTR
ret
;
LONG
r
;
LVCOLUMNA
col
;
RECT
rect
;
WNDCLASSEX
cls
;
cls
.
cbSize
=
sizeof
(
WNDCLASSEX
);
ok
(
GetClassInfoEx
(
GetModuleHandle
(
NULL
),
"SysListView32"
,
&
cls
),
"GetClassInfoEx failed
\n
"
);
...
...
@@ -976,6 +977,31 @@ static void test_create(void)
ok
(
IsWindow
(
hHeader
),
"Header should be created
\n
"
);
ok
(
hHeader
==
GetDlgItem
(
hList
,
0
),
"Expected header as dialog item
\n
"
);
DestroyWindow
(
hList
);
/* requesting header info with LVM_GETSUBITEMRECT doesn't create it */
hList
=
CreateWindow
(
"SysListView32"
,
"Test"
,
LVS_REPORT
,
0
,
0
,
100
,
100
,
NULL
,
NULL
,
GetModuleHandle
(
NULL
),
0
);
ok
(
!
IsWindow
(
hHeader
),
"Header shouldn't be created
\n
"
);
ok
(
NULL
==
GetDlgItem
(
hList
,
0
),
"NULL dialog item expected
\n
"
);
rect
.
left
=
LVIR_BOUNDS
;
rect
.
top
=
1
;
rect
.
right
=
rect
.
bottom
=
-
10
;
r
=
SendMessage
(
hList
,
LVM_GETSUBITEMRECT
,
-
1
,
(
LPARAM
)
&
rect
);
todo_wine
ok
(
r
!=
0
,
"Expected not-null LRESULT
\n
"
);
hHeader
=
(
HWND
)
SendMessage
(
hList
,
LVM_GETHEADER
,
0
,
0
);
ok
(
!
IsWindow
(
hHeader
),
"Header shouldn't be created
\n
"
);
ok
(
NULL
==
GetDlgItem
(
hList
,
0
),
"NULL dialog item expected
\n
"
);
expect
(
0
,
rect
.
left
);
todo_wine
{
expect
(
0
,
rect
.
right
);
expect
(
0
,
rect
.
top
);
expect
(
0
,
rect
.
bottom
);
}
DestroyWindow
(
hList
);
}
static
void
test_redraw
(
void
)
...
...
@@ -1529,6 +1555,21 @@ todo_wine{
}
DestroyWindow
(
hwnd
);
/* try it for non LVS_REPORT style */
hwnd
=
CreateWindow
(
"SysListView32"
,
"Test"
,
LVS_ICON
,
0
,
0
,
100
,
100
,
NULL
,
NULL
,
GetModuleHandle
(
NULL
),
0
);
rect
.
left
=
LVIR_BOUNDS
;
rect
.
top
=
1
;
rect
.
right
=
rect
.
bottom
=
-
10
;
r
=
SendMessage
(
hwnd
,
LVM_GETSUBITEMRECT
,
-
1
,
(
LPARAM
)
&
rect
);
ok
(
r
==
0
,
"Expected not-null LRESULT
\n
"
);
/* rect is unchanged */
expect
(
0
,
rect
.
left
);
expect
(
-
10
,
rect
.
right
);
expect
(
1
,
rect
.
top
);
expect
(
-
10
,
rect
.
bottom
);
DestroyWindow
(
hwnd
);
}
/* comparison callback for test_sorting */
...
...
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