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
59cb4ff6
Commit
59cb4ff6
authored
Mar 25, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Listview doesn't subclass its header.
parent
524f6860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
listview.c
dlls/comctl32/tests/listview.c
+26
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
59cb4ff6
...
...
@@ -5644,6 +5644,30 @@ static void test_insertitem(void)
DestroyWindow
(
hwnd
);
}
static
void
test_header_proc
(
void
)
{
HWND
hwnd
,
header
,
hdr
;
WNDPROC
proc1
,
proc2
;
hwnd
=
create_listview_control
(
LVS_REPORT
);
header
=
(
HWND
)
SendMessageA
(
hwnd
,
LVM_GETHEADER
,
0
,
0
);
ok
(
header
!=
NULL
,
"got %p
\n
"
,
header
);
hdr
=
CreateWindowExA
(
0
,
WC_HEADERA
,
NULL
,
WS_BORDER
|
WS_VISIBLE
|
HDS_BUTTONS
|
HDS_HORZ
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hdr
!=
NULL
,
"got %p
\n
"
,
hdr
);
proc1
=
(
WNDPROC
)
GetWindowLongPtrW
(
header
,
GWLP_WNDPROC
);
proc2
=
(
WNDPROC
)
GetWindowLongPtrW
(
hdr
,
GWLP_WNDPROC
);
ok
(
proc1
==
proc2
,
"got %p, expected %p
\n
"
,
proc1
,
proc2
);
DestroyWindow
(
hdr
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
listview
)
{
HMODULE
hComctl32
;
...
...
@@ -5712,6 +5736,7 @@ START_TEST(listview)
test_imagelists
();
test_deleteitem
();
test_insertitem
();
test_header_proc
();
if
(
!
load_v6_module
(
&
ctx_cookie
,
&
hCtx
))
{
...
...
@@ -5729,6 +5754,7 @@ START_TEST(listview)
test_deleteitem
();
test_multiselect
();
test_insertitem
();
test_header_proc
();
unload_v6_module
(
ctx_cookie
,
hCtx
);
...
...
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