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
59e3490c
Commit
59e3490c
authored
Jun 17, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jun 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't rearrange icons / update scroll bar when destroying a listview.
parent
57c49cbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
listview.c
dlls/comctl32/listview.c
+8
-5
No files found.
dlls/comctl32/listview.c
View file @
59e3490c
...
...
@@ -4457,7 +4457,7 @@ static HIMAGELIST LISTVIEW_CreateDragImage(LISTVIEW_INFO *infoPtr, INT iItem, LP
* SUCCESS : TRUE
* FAILURE : FALSE
*/
static
BOOL
LISTVIEW_DeleteAllItems
(
LISTVIEW_INFO
*
infoPtr
)
static
BOOL
LISTVIEW_DeleteAllItems
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
destroy
)
{
NMLISTVIEW
nmlv
;
HDPA
hdpaSubItems
=
NULL
;
...
...
@@ -4501,8 +4501,11 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr)
infoPtr
->
nItemCount
--
;
}
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
LISTVIEW_UpdateScroll
(
infoPtr
);
if
(
!
destroy
)
{
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
LISTVIEW_UpdateScroll
(
infoPtr
);
}
LISTVIEW_InvalidateList
(
infoPtr
);
return
TRUE
;
...
...
@@ -8729,7 +8732,7 @@ static LRESULT LISTVIEW_NCDestroy(LISTVIEW_INFO *infoPtr)
TRACE
(
"()
\n
"
);
/* delete all items */
LISTVIEW_DeleteAllItems
(
infoPtr
);
LISTVIEW_DeleteAllItems
(
infoPtr
,
TRUE
);
/* destroy data structure */
DPA_Destroy
(
infoPtr
->
hdpaItems
);
...
...
@@ -9510,7 +9513,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
(
LRESULT
)
LISTVIEW_CreateDragImage
(
infoPtr
,
(
INT
)
wParam
,
(
LPPOINT
)
lParam
);
case
LVM_DELETEALLITEMS
:
return
LISTVIEW_DeleteAllItems
(
infoPtr
);
return
LISTVIEW_DeleteAllItems
(
infoPtr
,
FALSE
);
case
LVM_DELETECOLUMN
:
return
LISTVIEW_DeleteColumn
(
infoPtr
,
(
INT
)
wParam
);
...
...
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