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
457c983e
Commit
457c983e
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: Partial fix for LVM_GETSUBITEMRECT for item == -1.
parent
09d6a6c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
listview.c
dlls/comctl32/listview.c
+18
-0
listview.c
dlls/comctl32/tests/listview.c
+6
-7
No files found.
dlls/comctl32/listview.c
View file @
457c983e
...
...
@@ -5984,6 +5984,24 @@ static BOOL LISTVIEW_GetSubItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPR
if
((
infoPtr
->
dwStyle
&
LVS_TYPEMASK
)
!=
LVS_REPORT
)
return
FALSE
;
/* special case for header items */
if
(
nItem
==
-
1
)
{
if
(
lprc
->
left
!=
LVIR_BOUNDS
)
{
FIXME
(
"Only LVIR_BOUNDS is implemented for header, got %d
\n
"
,
lprc
->
left
);
return
FALSE
;
}
if
(
infoPtr
->
hwndHeader
)
return
Header_GetItemRect
(
infoPtr
->
hwndHeader
,
lprc
->
top
,
lprc
);
else
{
memset
(
lprc
,
0
,
sizeof
(
RECT
));
return
TRUE
;
}
}
if
(
!
LISTVIEW_GetItemPosition
(
infoPtr
,
nItem
,
&
Position
))
return
FALSE
;
if
(
nColumn
<
0
||
nColumn
>=
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
))
return
FALSE
;
...
...
dlls/comctl32/tests/listview.c
View file @
457c983e
...
...
@@ -988,7 +988,6 @@ static void test_create(void)
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
);
...
...
@@ -996,11 +995,10 @@ todo_wine
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
);
}
...
...
@@ -1537,22 +1535,23 @@ static void test_subitem_rect(void)
rect
.
top
=
1
;
rect
.
right
=
rect
.
bottom
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETSUBITEMRECT
,
-
1
,
(
LPARAM
)
&
rect
);
todo_wine
{
ok
(
r
!=
0
,
"Expected not-null LRESULT
\n
"
);
expect
(
100
,
rect
.
left
);
expect
(
250
,
rect
.
right
);
todo_wine
expect
(
3
,
rect
.
top
);
}
rect
.
left
=
LVIR_BOUNDS
;
rect
.
top
=
2
;
rect
.
right
=
rect
.
bottom
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETSUBITEMRECT
,
-
1
,
(
LPARAM
)
&
rect
);
todo_wine
{
ok
(
r
!=
0
,
"Expected not-null LRESULT
\n
"
);
expect
(
250
,
rect
.
left
);
expect
(
450
,
rect
.
right
);
todo_wine
expect
(
3
,
rect
.
top
);
}
DestroyWindow
(
hwnd
);
...
...
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