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
2a32ce74
Commit
2a32ce74
authored
May 26, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Improve item position calculating in LVS_REPORT.
parent
25c775a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
listview.c
dlls/comctl32/listview.c
+4
-1
listview.c
dlls/comctl32/tests/listview.c
+1
-1
No files found.
dlls/comctl32/listview.c
View file @
2a32ce74
...
...
@@ -1920,7 +1920,10 @@ static void LISTVIEW_GetItemOrigin(const LISTVIEW_INFO *infoPtr, INT nItem, LPPO
}
else
/* LVS_REPORT */
{
lpptPosition
->
x
=
0
;
lpptPosition
->
x
=
REPORT_MARGINX
;
/* item is always at zero indexed column */
if
(
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
>
0
)
lpptPosition
->
x
+=
LISTVIEW_GetColumnInfo
(
infoPtr
,
0
)
->
rcHeader
.
left
;
lpptPosition
->
y
=
nItem
*
infoPtr
->
nItemHeight
;
}
}
...
...
dlls/comctl32/tests/listview.c
View file @
2a32ce74
...
...
@@ -2538,7 +2538,7 @@ static void test_getitemposition(void)
memset
(
&
rect
,
0
,
sizeof
(
rect
));
SendMessage
(
header
,
HDM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rect
);
/* some padding? */
todo_wine
expect
(
2
,
pt
.
x
);
expect
(
2
,
pt
.
x
);
/* offset by header height */
expect
(
rect
.
bottom
-
rect
.
top
,
pt
.
y
);
...
...
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