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
3cd15e5d
Commit
3cd15e5d
authored
May 29, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't offset subitem rectangles with item padding returned by…
comctl32/listview: Don't offset subitem rectangles with item padding returned by LVM_GETSUBITEMRECT.
parent
6101a480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
listview.c
dlls/comctl32/listview.c
+3
-3
listview.c
dlls/comctl32/tests/listview.c
+2
-8
No files found.
dlls/comctl32/listview.c
View file @
3cd15e5d
...
...
@@ -2044,7 +2044,7 @@ static void LISTVIEW_GetItemMetrics(const LISTVIEW_INFO *infoPtr, const LVITEMW
{
Icon
.
left
=
Box
.
left
+
state_width
;
if
(
uView
==
LVS_REPORT
)
if
(
uView
==
LVS_REPORT
&&
lpLVItem
->
iSubItem
==
0
)
Icon
.
left
+=
REPORT_MARGINX
;
Icon
.
top
=
Box
.
top
;
...
...
@@ -2145,7 +2145,7 @@ calc_label:
Label
.
right
=
lpColumnInfo
->
rcHeader
.
right
;
Label
.
bottom
=
Label
.
top
+
infoPtr
->
nItemHeight
;
}
else
/* LVS_SMALLICON
, LVS_LIST or LVS_REPOR
T */
else
/* LVS_SMALLICON
or LVS_LIS
T */
{
Label
.
left
=
Icon
.
right
;
Label
.
top
=
Box
.
top
;
...
...
@@ -6077,7 +6077,7 @@ static BOOL LISTVIEW_GetSubItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPR
return
FALSE
;
}
OffsetRect
(
lprc
,
Position
.
x
,
Position
.
y
);
OffsetRect
(
lprc
,
0
,
Position
.
y
);
return
TRUE
;
}
...
...
dlls/comctl32/tests/listview.c
View file @
3cd15e5d
...
...
@@ -1835,32 +1835,26 @@ todo_wine
rect
.
right
=
rect
.
bottom
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETSUBITEMRECT
,
0
,
(
LPARAM
)
&
rect
);
ok
(
r
!=
0
,
"Expected not-null LRESULT
\n
"
);
todo_wine
{
expect
(
100
,
rect
.
left
);
expect
(
250
,
rect
.
right
);
}
rect
.
left
=
LVIR_ICON
;
rect
.
top
=
1
;
rect
.
right
=
rect
.
bottom
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETSUBITEMRECT
,
0
,
(
LPARAM
)
&
rect
);
ok
(
r
!=
0
,
"Expected not-null LRESULT
\n
"
);
/* no icon attached - zero width rectangle */
todo_wine
{
/* no icon attached - zero width rectangle, with no left padding */
expect
(
100
,
rect
.
left
);
expect
(
100
,
rect
.
right
);
}
rect
.
left
=
LVIR_LABEL
;
rect
.
top
=
1
;
rect
.
right
=
rect
.
bottom
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETSUBITEMRECT
,
0
,
(
LPARAM
)
&
rect
);
ok
(
r
!=
0
,
"Expected not-null LRESULT
\n
"
);
/* should equal to LVIR_BOUNDS */
todo_wine
{
/* same as full LVIR_BOUNDS */
expect
(
100
,
rect
.
left
);
expect
(
250
,
rect
.
right
);
}
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