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
17b97eb9
Commit
17b97eb9
authored
Oct 28, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Despite what the docs say, we have to invalidate the list on
WM_SETREDRAW(TRUE).
parent
ccc8f7dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
listview.c
dlls/comctl32/listview.c
+10
-1
No files found.
dlls/comctl32/listview.c
View file @
17b97eb9
...
...
@@ -1209,7 +1209,7 @@ static inline BOOL is_redrawing(LISTVIEW_INFO *infoPtr)
return
infoPtr
->
bRedraw
&&
!
infoPtr
->
bFirstPaint
;
}
static
inline
void
LISTVIEW_InvalidateRect
(
LISTVIEW_INFO
*
infoPtr
,
const
RECT
*
rect
)
static
inline
void
LISTVIEW_InvalidateRect
(
LISTVIEW_INFO
*
infoPtr
,
const
RECT
*
rect
)
{
if
(
!
is_redrawing
(
infoPtr
))
return
;
TRACE
(
" invalidating rect=%s
\n
"
,
debugrect
(
rect
));
...
...
@@ -8031,6 +8031,11 @@ static LRESULT LISTVIEW_SetFont(LISTVIEW_INFO *infoPtr, HFONT hFont, WORD fRedra
*/
static
LRESULT
LISTVIEW_SetRedraw
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
bRedraw
)
{
TRACE
(
"infoPtr->bRedraw=%d, bRedraw=%d
\n
"
,
infoPtr
->
bRedraw
,
bRedraw
);
/* we can not use straight equality here because _any_ non-zero value is TRUE */
if
((
infoPtr
->
bRedraw
&&
bRedraw
)
||
(
!
infoPtr
->
bRedraw
&&
!
bRedraw
))
return
0
;
infoPtr
->
bRedraw
=
bRedraw
;
if
(
!
bRedraw
)
return
0
;
...
...
@@ -8039,6 +8044,10 @@ static LRESULT LISTVIEW_SetRedraw(LISTVIEW_INFO *infoPtr, BOOL bRedraw)
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
LISTVIEW_UpdateScroll
(
infoPtr
);
/* despite what the WM_SETREDRAW docs says, apps expect us
* to invalidate the listview here... stupid! */
LISTVIEW_InvalidateList
(
infoPtr
);
return
0
;
}
...
...
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