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
71cf0a31
Commit
71cf0a31
authored
Feb 06, 2018
by
Mark Jansen
Committed by
Alexandre Julliard
Feb 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Include the checkbox in column width calculation.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e00a2379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
listview.c
dlls/comctl32/listview.c
+2
-0
listview.c
dlls/comctl32/tests/listview.c
+0
-2
No files found.
dlls/comctl32/listview.c
View file @
71cf0a31
...
...
@@ -8406,6 +8406,8 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx)
if
(
infoPtr
->
himlSmall
&&
(
nColumn
==
0
||
(
LISTVIEW_GetColumnInfo
(
infoPtr
,
nColumn
)
->
fmt
&
LVCFMT_IMAGE
)))
max_cx
+=
infoPtr
->
iconSize
.
cx
;
max_cx
+=
TRAILING_LABEL_PADDING
;
if
(
nColumn
==
0
&&
(
infoPtr
->
dwLvExStyle
&
LVS_EX_CHECKBOXES
))
max_cx
+=
GetSystemMetrics
(
SM_CXSMICON
);
}
/* autosize based on listview items width */
...
...
dlls/comctl32/tests/listview.c
View file @
71cf0a31
...
...
@@ -6298,7 +6298,6 @@ static void test_LVSCW_AUTOSIZE(void)
width2
=
SendMessageA
(
hwnd
,
LVM_GETCOLUMNWIDTH
,
0
,
0
);
ok
(
width2
>
0
,
"Unexpected column width %d.
\n
"
,
width2
);
todo_wine
ok
(
width2
>
width
,
"Expected increased column width.
\n
"
);
/* Turn off checkboxes. */
...
...
@@ -6310,7 +6309,6 @@ todo_wine
width
=
SendMessageA
(
hwnd
,
LVM_GETCOLUMNWIDTH
,
0
,
0
);
ok
(
width
>
0
,
"Unexpected column width %d.
\n
"
,
width2
);
todo_wine
ok
(
width2
>
width
,
"Expected reduced column width.
\n
"
);
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