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
019ae8a2
Commit
019ae8a2
authored
Feb 25, 2002
by
Gerard Patel
Committed by
Alexandre Julliard
Feb 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LVM_GetItemRect should not take text size in account for LVIR_LABEL in
report mode.
parent
814a3fa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
+29
-8
listview.c
dlls/comctl32/listview.c
+29
-8
No files found.
dlls/comctl32/listview.c
View file @
019ae8a2
...
...
@@ -493,6 +493,21 @@ static char* debuglvitem_t(LPLVITEMW lpLVItem, BOOL isW)
return
buf
;
}
static
char
*
debuglvcolumn_t
(
LPLVCOLUMNW
lpColumn
,
BOOL
isW
)
{
static
int
index
=
0
;
static
char
buffers
[
20
][
256
];
char
*
buf
=
buffers
[
index
++
%
20
];
if
(
lpColumn
==
NULL
)
return
"(null)"
;
snprintf
(
buf
,
256
,
"{mask=%x, fmt=%x, cx=%d,"
" pszText=%s, cchTextMax=%d, iSubItem=%d}"
,
lpColumn
->
mask
,
lpColumn
->
fmt
,
lpColumn
->
cx
,
lpColumn
->
mask
&
LVCF_TEXT
?
lpColumn
->
pszText
==
LPSTR_TEXTCALLBACKW
?
"(callback)"
:
debugstr_tn
(
lpColumn
->
pszText
,
isW
,
80
)
:
""
,
lpColumn
->
mask
&
LVCF_TEXT
?
lpColumn
->
cchTextMax
:
0
,
lpColumn
->
iSubItem
);
return
buf
;
}
static
void
LISTVIEW_DumpListview
(
LISTVIEW_INFO
*
iP
,
INT
line
)
{
DWORD
dwStyle
=
GetWindowLongW
(
iP
->
hwndSelf
,
GWL_STYLE
);
...
...
@@ -916,9 +931,6 @@ static VOID LISTVIEW_UnsupportedStyles(LONG lStyle)
if
((
LVS_TYPESTYLEMASK
&
lStyle
)
==
LVS_NOSORTHEADER
)
FIXME
(
" LVS_NOSORTHEADER
\n
"
);
if
((
LVS_TYPESTYLEMASK
&
lStyle
)
==
LVS_OWNERDRAWFIXED
)
FIXME
(
" LVS_OWNERDRAWFIXED
\n
"
);
if
(
lStyle
&
LVS_EDITLABELS
)
FIXME
(
" LVS_EDITLABELS
\n
"
);
...
...
@@ -4903,6 +4915,10 @@ static LRESULT LISTVIEW_GetColumnT(HWND hwnd, INT nItem, LPLVCOLUMNW lpColumn, B
if
(
lpColumn
!=
NULL
)
{
TRACE
(
"(hwnd=%x, col=%d, lpColumn=%s, isW=%d)
\n
"
,
hwnd
,
nItem
,
debuglvcolumn_t
(
lpColumn
,
isW
),
isW
);
/* initialize memory */
ZeroMemory
(
&
hdi
,
sizeof
(
hdi
));
...
...
@@ -5686,7 +5702,7 @@ static LRESULT LISTVIEW_GetItemRect(HWND hwnd, INT nItem, LPRECT lprc)
else
{
bResult
=
TRUE
;
if
(
uView
&
LVS_REPORT
)
if
(
uView
==
LVS_REPORT
)
nLeftPos
=
lprc
->
left
=
ptItem
.
x
+
nIndent
;
else
nLeftPos
=
lprc
->
left
=
ptItem
.
x
;
...
...
@@ -5699,10 +5715,15 @@ static LRESULT LISTVIEW_GetItemRect(HWND hwnd, INT nItem, LPRECT lprc)
if
(
infoPtr
->
himlSmall
!=
NULL
)
lprc
->
left
+=
infoPtr
->
iconSize
.
cx
;
nLabelWidth
=
LISTVIEW_GetLabelWidth
(
hwnd
,
nItem
);
nLabelWidth
+=
TRAILING_PADDING
;
if
(
infoPtr
->
himlSmall
)
nLabelWidth
+=
IMAGE_PADDING
;
if
(
uView
!=
LVS_REPORT
)
{
nLabelWidth
=
LISTVIEW_GetLabelWidth
(
hwnd
,
nItem
);
nLabelWidth
+=
TRAILING_PADDING
;
if
(
infoPtr
->
himlSmall
)
nLabelWidth
+=
IMAGE_PADDING
;
}
else
nLabelWidth
=
LISTVIEW_GetColumnWidth
(
hwnd
,
0
)
-
lprc
->
left
;
if
(
lprc
->
left
+
nLabelWidth
<
nLeftPos
+
infoPtr
->
nItemWidth
)
lprc
->
right
=
lprc
->
left
+
nLabelWidth
;
else
...
...
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