Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d17afea7
Commit
d17afea7
authored
May 20, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: A basic test for ListView WM_SETREDRAW.
parent
c1983382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
listview.c
dlls/comctl32/tests/listview.c
+29
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
d17afea7
...
...
@@ -2215,6 +2215,32 @@ static void test_nosortheader(void)
DestroyWindow
(
hwnd
);
}
static
void
test_setredraw
(
void
)
{
HWND
hwnd
;
DWORD_PTR
style
;
DWORD
ret
;
hwnd
=
create_listview_control
(
0
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
/* Passing WM_SETREDRAW to DefWinProc removes WS_VISIBLE.
ListView seems to handle it internally without DefWinProc */
/* default value first */
ret
=
SendMessage
(
hwnd
,
WM_SETREDRAW
,
TRUE
,
0
);
expect
(
0
,
ret
);
/* disable */
style
=
GetWindowLongPtr
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
WS_VISIBLE
,
"Expected WS_VISIBLE to be set
\n
"
);
ret
=
SendMessage
(
hwnd
,
WM_SETREDRAW
,
FALSE
,
0
);
expect
(
0
,
ret
);
style
=
GetWindowLongPtr
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
WS_VISIBLE
,
"Expected WS_VISIBLE to be set
\n
"
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
listview
)
{
HMODULE
hComctl32
;
...
...
@@ -2257,4 +2283,7 @@ START_TEST(listview)
test_ownerdata
();
test_norecompute
();
test_nosortheader
();
test_setredraw
();
DestroyWindow
(
hwndparent
);
}
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