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
50ed9b99
Commit
50ed9b99
authored
Oct 10, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement WM_SETREDRAW properly.
parent
12dca97b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
listview.c
dlls/comctl32/listview.c
+6
-5
No files found.
dlls/comctl32/listview.c
View file @
50ed9b99
...
...
@@ -153,6 +153,7 @@ typedef struct tagLISTVIEW_INFO
HFONT
hFont
;
INT
ntmHeight
;
/* from GetTextMetrics from above font */
INT
ntmAveCharWidth
;
/* from GetTextMetrics from above font */
BOOL
bRedraw
;
BOOL
bFocus
;
INT
nFocusedItem
;
RECT
rcFocus
;
...
...
@@ -883,10 +884,11 @@ static inline LRESULT CallWindowProcT(WNDPROC proc, HWND hwnd, UINT uMsg,
/******** Internal API functions ************************************/
/* The Invalidate* are macros, so we preserve the caller location */
#define LISTVIEW_InvalidateRect(infoPtr, rect)
do
{ \
#define LISTVIEW_InvalidateRect(infoPtr, rect)
while(infoPtr->bRedraw)
{ \
TRACE(" invalidating rect=%s\n", debugrect(rect)); \
InvalidateRect(infoPtr->hwndSelf, rect, TRUE); \
} while (0)
break;\
}
#define LISTVIEW_InvalidateItem(infoPtr, nItem) do { \
RECT rcItem; \
...
...
@@ -8114,12 +8116,11 @@ static LRESULT LISTVIEW_SetFont(LISTVIEW_INFO *infoPtr, HFONT hFont, WORD fRedra
*/
static
LRESULT
LISTVIEW_SetRedraw
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
bRedraw
)
{
/* FIXME: this is bogus */
LRESULT
lResult
=
DefWindowProcW
(
infoPtr
->
hwndSelf
,
WM_SETREDRAW
,
bRedraw
,
0
);
infoPtr
->
bRedraw
=
bRedraw
;
if
(
bRedraw
)
RedrawWindow
(
infoPtr
->
hwndSelf
,
NULL
,
0
,
RDW_INVALIDATE
|
RDW_FRAME
|
RDW_ERASE
|
RDW_ALLCHILDREN
|
RDW_ERASENOW
);
return
lResult
;
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