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
d1b24def
Commit
d1b24def
authored
Aug 27, 2002
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the icon spacing when setting the image list.
parent
86198965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
listview.c
dlls/comctl32/listview.c
+14
-0
No files found.
dlls/comctl32/listview.c
View file @
d1b24def
...
...
@@ -5849,6 +5849,7 @@ static LRESULT LISTVIEW_GetItemRect(HWND hwnd, INT nItem, LPRECT lprc)
lprc
->
right
=
lprc
->
left
+
infoPtr
->
iconSpacing
.
cx
-
1
;
ListView_UpdateLargeItemLabelRect
(
hwnd
,
infoPtr
,
nItem
,
lprc
);
}
lprc
->
bottom
=
lprc
->
top
+
infoPtr
->
ntmHeight
+
HEIGHT_PADDING
;
}
}
}
...
...
@@ -6103,6 +6104,9 @@ static LRESULT LISTVIEW_GetItemRect(HWND hwnd, INT nItem, LPRECT lprc)
}
break
;
}
TRACE
(
"result %s (%d,%d)-(%d,%d)
\n
"
,
(
bResult
)
?
"TRUE"
:
"FALSE"
,
lprc
->
left
,
lprc
->
top
,
lprc
->
right
,
lprc
->
bottom
);
}
TRACE
(
"result %s (%d,%d)-(%d,%d)
\n
"
,
bResult
?
"TRUE"
:
"FALSE"
,
...
...
@@ -7705,12 +7709,21 @@ static HIMAGELIST LISTVIEW_SetImageList(HWND hwnd, INT nType, HIMAGELIST himl)
LISTVIEW_INFO
*
infoPtr
=
(
LISTVIEW_INFO
*
)
GetWindowLongW
(
hwnd
,
0
);
HIMAGELIST
himlOld
=
0
;
INT
oldHeight
;
UINT
uView
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
LVS_TYPEMASK
;
switch
(
nType
)
{
case
LVSIL_NORMAL
:
himlOld
=
infoPtr
->
himlNormal
;
infoPtr
->
himlNormal
=
himl
;
if
(
himl
&&
(
LVS_ICON
==
uView
))
{
INT
cx
,
cy
;
ImageList_GetIconSize
(
himl
,
&
cx
,
&
cy
);
infoPtr
->
iconSize
.
cx
=
cx
;
infoPtr
->
iconSize
.
cy
=
cy
;
LISTVIEW_SetIconSpacing
(
hwnd
,
0
);
}
break
;
case
LVSIL_SMALL
:
...
...
@@ -9587,6 +9600,7 @@ static INT LISTVIEW_StyleChanged(HWND hwnd, WPARAM wStyleType,
if
(
uNewView
==
LVS_ICON
)
{
/* FIXME: should get icon size from imagelist - mjm */
infoPtr
->
iconSize
.
cx
=
GetSystemMetrics
(
SM_CXICON
);
infoPtr
->
iconSize
.
cy
=
GetSystemMetrics
(
SM_CYICON
);
infoPtr
->
nItemWidth
=
LISTVIEW_GetItemWidth
(
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