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
e8846b7c
Commit
e8846b7c
authored
Aug 13, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Block redrawing entirely after WM_SETREDRAW wParam=FALSE.
parent
c92bb271
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
listview.c
dlls/comctl32/listview.c
+21
-2
listview.c
dlls/comctl32/tests/listview.c
+2
-2
No files found.
dlls/comctl32/listview.c
View file @
e8846b7c
...
...
@@ -9727,7 +9727,7 @@ static LRESULT LISTVIEW_NotifyFormat(LISTVIEW_INFO *infoPtr, HWND hwndFrom, INT
/***
* DESCRIPTION:
* Paints/Repaints the listview control.
* Paints/Repaints the listview control.
Internal use.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
...
...
@@ -9766,6 +9766,25 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
return
0
;
}
/***
* DESCRIPTION:
* Paints/Repaints the listview control, WM_PAINT handler.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] hdc : device context handle
*
* RETURN:
* Zero
*/
static
inline
LRESULT
LISTVIEW_WMPaint
(
LISTVIEW_INFO
*
infoPtr
,
HDC
hdc
)
{
TRACE
(
"(hdc=%p)
\n
"
,
hdc
);
if
(
!
is_redrawing
(
infoPtr
))
return
0
;
return
LISTVIEW_Paint
(
infoPtr
,
hdc
);
}
/***
* DESCRIPTION:
...
...
@@ -10802,7 +10821,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
LISTVIEW_PrintClient
(
infoPtr
,
(
HDC
)
wParam
,
(
DWORD
)
lParam
);
case
WM_PAINT
:
return
LISTVIEW_Paint
(
infoPtr
,
(
HDC
)
wParam
);
return
LISTVIEW_
WM
Paint
(
infoPtr
,
(
HDC
)
wParam
);
case
WM_RBUTTONDBLCLK
:
return
LISTVIEW_RButtonDblClk
(
infoPtr
,
(
WORD
)
wParam
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
...
...
dlls/comctl32/tests/listview.c
View file @
e8846b7c
...
...
@@ -2834,7 +2834,7 @@ static void test_setredraw(void)
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
UpdateWindow
(
hwnd
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"redraw after WM_SETREDRAW (FALSE)"
,
TRU
E
);
"redraw after WM_SETREDRAW (FALSE)"
,
FALS
E
);
ret
=
SendMessage
(
hwnd
,
LVM_SETBKCOLOR
,
0
,
CLR_NONE
);
expect
(
TRUE
,
ret
);
...
...
@@ -2842,7 +2842,7 @@ static void test_setredraw(void)
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
UpdateWindow
(
hwnd
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"redraw after WM_SETREDRAW (FALSE) with CLR_NONE bkgnd"
,
TRU
E
);
"redraw after WM_SETREDRAW (FALSE) with CLR_NONE bkgnd"
,
FALS
E
);
/* message isn't forwarded to header */
subclass_header
(
hwnd
);
...
...
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