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
7420c0d0
Commit
7420c0d0
authored
Aug 31, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Call default handler for WM_PAINT disabled by WM_SETREDRAW.
parent
0ac2a855
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
listview.c
dlls/comctl32/listview.c
+2
-1
listview.c
dlls/comctl32/tests/listview.c
+11
-0
No files found.
dlls/comctl32/listview.c
View file @
7420c0d0
...
...
@@ -9781,7 +9781,8 @@ static inline LRESULT LISTVIEW_WMPaint(LISTVIEW_INFO *infoPtr, HDC hdc)
{
TRACE
(
"(hdc=%p)
\n
"
,
hdc
);
if
(
!
is_redrawing
(
infoPtr
))
return
0
;
if
(
!
is_redrawing
(
infoPtr
))
return
DefWindowProcW
(
infoPtr
->
hwndSelf
,
WM_PAINT
,
(
WPARAM
)
hdc
,
0
);
return
LISTVIEW_Paint
(
infoPtr
,
hdc
);
}
...
...
dlls/comctl32/tests/listview.c
View file @
7420c0d0
...
...
@@ -2770,6 +2770,7 @@ static void test_setredraw(void)
DWORD_PTR
style
;
DWORD
ret
;
HDC
hdc
;
RECT
rect
;
hwnd
=
create_listview_control
(
LVS_OWNERDATA
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
...
...
@@ -2790,6 +2791,16 @@ static void test_setredraw(void)
ret
=
SendMessage
(
hwnd
,
WM_SETREDRAW
,
TRUE
,
0
);
expect
(
0
,
ret
);
/* check update rect after redrawing */
ret
=
SendMessage
(
hwnd
,
WM_SETREDRAW
,
FALSE
,
0
);
expect
(
0
,
ret
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_UPDATENOW
);
rect
.
right
=
rect
.
bottom
=
1
;
GetUpdateRect
(
hwnd
,
&
rect
,
FALSE
);
expect
(
0
,
rect
.
right
);
expect
(
0
,
rect
.
bottom
);
/* WM_ERASEBKGND */
hdc
=
GetWindowDC
(
hwndparent
);
ret
=
SendMessage
(
hwnd
,
WM_ERASEBKGND
,
(
WPARAM
)
hdc
,
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