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
c0ca077f
Commit
c0ca077f
authored
Jan 22, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
Jan 22, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc fixes in LISTVIEW_SetImageList, LISTVIEW_SetItemCount,
LISTVIEW_UpdateSize.
parent
151023d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
19 deletions
+8
-19
listview.c
dlls/comctl32/listview.c
+8
-19
No files found.
dlls/comctl32/listview.c
View file @
c0ca077f
...
...
@@ -7077,6 +7077,7 @@ static LRESULT LISTVIEW_SetImageList(HWND hwnd, INT nType, HIMAGELIST himl)
{
LISTVIEW_INFO
*
infoPtr
=
(
LISTVIEW_INFO
*
)
GetWindowLongA
(
hwnd
,
0
);
HIMAGELIST
himlOld
=
0
;
INT
oldHeight
;
switch
(
nType
)
{
...
...
@@ -7097,7 +7098,10 @@ static LRESULT LISTVIEW_SetImageList(HWND hwnd, INT nType, HIMAGELIST himl)
break
;
}
oldHeight
=
infoPtr
->
nItemHeight
;
infoPtr
->
nItemHeight
=
LISTVIEW_GetItemHeight
(
hwnd
);
if
(
infoPtr
->
nItemHeight
!=
oldHeight
)
LISTVIEW_UpdateScroll
(
hwnd
);
return
(
LRESULT
)
himlOld
;
}
...
...
@@ -7143,11 +7147,11 @@ static LRESULT LISTVIEW_SetItemA(HWND hwnd, LPLVITEMA lpLVItem)
/***
* DESCRIPTION:
* Preallocates memory
.
* Preallocates memory
(does *not* set the actual count of items !)
*
* PARAMETER(S):
* [I] HWND : window handle
* [I] INT : item count (projected number of items)
* [I] INT : item count (projected number of items
to allocate
)
* [I] DWORD : update flags
*
* RETURN:
...
...
@@ -7189,22 +7193,7 @@ static BOOL LISTVIEW_SetItemCount(HWND hwnd, INT nItems, DWORD dwFlags)
}
else
{
if
(
nItems
==
0
)
return
LISTVIEW_DeleteAllItems
(
hwnd
);
if
(
nItems
>
GETITEMCOUNT
(
infoPtr
))
{
/* append items */
FIXME
(
"append items
\n
"
);
}
else
if
(
nItems
<
GETITEMCOUNT
(
infoPtr
))
{
/* remove items */
while
(
nItems
<
GETITEMCOUNT
(
infoPtr
))
{
LISTVIEW_DeleteItem
(
hwnd
,
GETITEMCOUNT
(
infoPtr
)
-
1
);
}
}
FIXME
(
"setitemcount not done for non-ownerdata
\n
"
);
}
return
TRUE
;
...
...
@@ -8886,7 +8875,7 @@ static VOID LISTVIEW_UpdateSize(HWND hwnd)
if
(
uView
==
LVS_LIST
)
{
if
(
(
lStyle
&
WS_HSCROLL
)
==
0
)
if
(
lStyle
&
WS_HSCROLL
)
{
INT
nHScrollHeight
=
GetSystemMetrics
(
SM_CYHSCROLL
);
if
(
infoPtr
->
rcList
.
bottom
>
nHScrollHeight
)
...
...
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