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
021410cf
Commit
021410cf
authored
Aug 03, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't offset to column bound calculating LVIR_LABEL for items.
parent
ba65d634
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
listview.c
dlls/comctl32/listview.c
+9
-3
No files found.
dlls/comctl32/listview.c
View file @
021410cf
...
...
@@ -319,7 +319,7 @@ typedef struct tagLISTVIEW_INFO
*/
/* How many we debug buffer to allocate */
#define DEBUG_BUFFERS 20
/* The size of a single debug b
b
uffer */
/* The size of a single debug buffer */
#define DEBUG_BUFFER_SIZE 256
/* Internal interface to LISTVIEW_HScroll and LISTVIEW_VScroll */
...
...
@@ -2202,7 +2202,12 @@ static void LISTVIEW_GetItemMetrics(const LISTVIEW_INFO *infoPtr, const LVITEMW
Label
.
right
=
Box
.
right
;
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
)
{
if
(
lpLVItem
->
iSubItem
==
0
)
Label
=
lpColumnInfo
->
rcHeader
;
if
(
lpLVItem
->
iSubItem
==
0
)
{
/* we need a zero based rect here */
Label
=
lpColumnInfo
->
rcHeader
;
OffsetRect
(
&
Label
,
-
Label
.
left
,
0
);
}
}
if
(
lpLVItem
->
iSubItem
||
((
infoPtr
->
dwStyle
&
LVS_OWNERDRAWFIXED
)
&&
infoPtr
->
uView
==
LV_VIEW_DETAILS
))
...
...
@@ -2267,7 +2272,8 @@ calc_label:
{
Label
.
left
=
Icon
.
right
;
Label
.
top
=
Box
.
top
;
Label
.
right
=
lpColumnInfo
->
rcHeader
.
right
;
Label
.
right
=
lpLVItem
->
iSubItem
?
lpColumnInfo
->
rcHeader
.
right
:
lpColumnInfo
->
rcHeader
.
right
-
lpColumnInfo
->
rcHeader
.
left
;
Label
.
bottom
=
Label
.
top
+
infoPtr
->
nItemHeight
;
}
else
/* LV_VIEW_SMALLICON or LV_VIEW_LIST */
...
...
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