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
89d4472d
Commit
89d4472d
authored
Oct 19, 2000
by
Chris Morgan
Committed by
Alexandre Julliard
Oct 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recalculate nItemHeight when LVS_SETIMAGELIST is called. Fixes icons
being chopped off in the file dialog window. Align items to top and refresh after sorting, as windows does.
parent
04996dda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
listview.c
dlls/comctl32/listview.c
+18
-9
No files found.
dlls/comctl32/listview.c
View file @
89d4472d
...
...
@@ -31,6 +31,7 @@
* LISTVIEW_GetHotCursor : not implemented
* LISTVIEW_GetISearchString : not implemented
* LISTVIEW_GetBkImage : not implemented
* LISTVIEW_SetBkImage : not implemented
* LISTVIEW_GetColumnOrderArray : simple hack only
* LISTVIEW_SetColumnOrderArray : simple hack only
* LISTVIEW_Arrange : empty stub
...
...
@@ -1161,7 +1162,7 @@ static INT LISTVIEW_GetItemHeight(HWND hwnd)
{
nItemHeight
=
infoPtr
->
iconSpacing
.
cy
;
}
else
else
{
TEXTMETRICA
tm
;
HDC
hdc
=
GetDC
(
hwnd
);
...
...
@@ -7042,28 +7043,30 @@ static LRESULT LISTVIEW_SetHoverTime(HWND hwnd, DWORD dwHoverTime)
static
LRESULT
LISTVIEW_SetImageList
(
HWND
hwnd
,
INT
nType
,
HIMAGELIST
himl
)
{
LISTVIEW_INFO
*
infoPtr
=
(
LISTVIEW_INFO
*
)
GetWindowLongA
(
hwnd
,
0
);
HIMAGELIST
himl
Temp
=
0
;
HIMAGELIST
himl
Old
=
0
;
switch
(
nType
)
{
case
LVSIL_NORMAL
:
himl
Temp
=
infoPtr
->
himlNormal
;
himl
Old
=
infoPtr
->
himlNormal
;
infoPtr
->
himlNormal
=
himl
;
return
(
LRESULT
)
himlTemp
;
break
;
case
LVSIL_SMALL
:
himl
Temp
=
infoPtr
->
himlSmall
;
himl
Old
=
infoPtr
->
himlSmall
;
infoPtr
->
himlSmall
=
himl
;
return
(
LRESULT
)
himlTemp
;
break
;
case
LVSIL_STATE
:
himl
Temp
=
infoPtr
->
himlState
;
himl
Old
=
infoPtr
->
himlState
;
infoPtr
->
himlState
=
himl
;
ImageList_SetBkColor
(
infoPtr
->
himlState
,
CLR_NONE
);
return
(
LRESULT
)
himlTemp
;
break
;
}
return
(
LRESULT
)
NULL
;
infoPtr
->
nItemHeight
=
LISTVIEW_GetItemHeight
(
hwnd
);
return
(
LRESULT
)
himlOld
;
}
...
...
@@ -7448,6 +7451,12 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
DPA_Sort
(
infoPtr
->
hdpaItems
,
LISTVIEW_CallBackCompare
,
hwnd
);
}
/* align the items */
LISTVIEW_AlignTop
(
hwnd
);
/* refresh the display */
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
return
TRUE
;
}
...
...
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