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
03f18eb4
Commit
03f18eb4
authored
Mar 19, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix listview redraw when deleting items.
parent
74f2f092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
listview.c
dlls/comctl32/listview.c
+6
-4
No files found.
dlls/comctl32/listview.c
View file @
03f18eb4
...
...
@@ -4642,8 +4642,9 @@ static void LISTVIEW_ScrollOnInsert(LISTVIEW_INFO *infoPtr, INT nItem, INT dir)
*/
static
BOOL
LISTVIEW_DeleteItem
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItem
)
{
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
LVITEMW
item
;
const
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
const
BOOL
is_icon
=
(
uView
==
LVS_SMALLICON
||
uView
==
LVS_ICON
);
TRACE
(
"(nItem=%d)
\n
"
,
nItem
);
...
...
@@ -4658,7 +4659,7 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem)
if
(
!
notify_deleteitem
(
infoPtr
,
nItem
))
return
FALSE
;
/* we need to do this here, because we'll be deleting stuff */
if
(
uView
==
LVS_SMALLICON
||
uView
==
LVS_ICON
)
if
(
is_icon
)
LISTVIEW_InvalidateItem
(
infoPtr
,
nItem
);
if
(
!
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
))
...
...
@@ -4677,7 +4678,7 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem)
DPA_Destroy
(
hdpaSubItems
);
}
if
(
uView
==
LVS_SMALLICON
||
uView
==
LVS_ICON
)
if
(
is_icon
)
{
DPA_DeletePtr
(
infoPtr
->
hdpaPosX
,
nItem
);
DPA_DeletePtr
(
infoPtr
->
hdpaPosY
,
nItem
);
...
...
@@ -4687,7 +4688,8 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem)
LISTVIEW_ShiftIndices
(
infoPtr
,
nItem
,
-
1
);
/* now is the invalidation fun */
LISTVIEW_ScrollOnInsert
(
infoPtr
,
nItem
,
-
1
);
if
(
!
is_icon
)
LISTVIEW_ScrollOnInsert
(
infoPtr
,
nItem
,
-
1
);
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