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
c47c62a8
Commit
c47c62a8
authored
Jul 21, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't invalidate item in LISTVIEW_SetItemT when its state has not changed.
parent
315599c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
listview.c
dlls/comctl32/listview.c
+6
-2
No files found.
dlls/comctl32/listview.c
View file @
c47c62a8
...
...
@@ -4401,14 +4401,15 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, LVITEMW *lpLVItem, BOOL is
HWND
hwndSelf
=
infoPtr
->
hwndSelf
;
LPWSTR
pszText
=
NULL
;
BOOL
bResult
,
bChanged
=
FALSE
;
RECT
oldItemArea
;
TRACE
(
"(lpLVItem=%s, isW=%d)
\n
"
,
debuglvitem_t
(
lpLVItem
,
isW
),
isW
);
if
(
!
lpLVItem
||
lpLVItem
->
iItem
<
0
||
lpLVItem
->
iItem
>=
infoPtr
->
nItemCount
)
return
FALSE
;
/*
Invalidat
e old item area */
LISTVIEW_
InvalidateItem
(
infoPtr
,
lpLVItem
->
iItem
);
/*
Stor
e old item area */
LISTVIEW_
GetItemBox
(
infoPtr
,
lpLVItem
->
iItem
,
&
oldItemArea
);
/* For efficiency, we transform the lpLVItem->pszText to Unicode here */
if
((
lpLVItem
->
mask
&
LVIF_TEXT
)
&&
is_text
(
lpLVItem
->
pszText
))
...
...
@@ -4436,7 +4437,10 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, LVITEMW *lpLVItem, BOOL is
lpLVItem
->
iSubItem
>
0
&&
lpLVItem
->
iSubItem
<=
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
)
LISTVIEW_InvalidateSubItem
(
infoPtr
,
lpLVItem
->
iItem
,
lpLVItem
->
iSubItem
);
else
{
LISTVIEW_InvalidateRect
(
infoPtr
,
&
oldItemArea
);
LISTVIEW_InvalidateItem
(
infoPtr
,
lpLVItem
->
iItem
);
}
}
/* restore text */
if
(
pszText
)
...
...
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