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
1b2a6a08
Commit
1b2a6a08
authored
Jul 08, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Basic LVN_(BEGIN|END)SCROLL tests.
parent
76c0d49b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
listview.c
dlls/comctl32/tests/listview.c
+55
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
1b2a6a08
...
...
@@ -240,6 +240,12 @@ static const struct message editbox_create_pos[] = {
{
0
}
};
static
const
struct
message
scroll_parent_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_BEGINSCROLL
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ENDSCROLL
},
{
0
}
};
struct
subclass_info
{
WNDPROC
oldproc
;
...
...
@@ -290,6 +296,15 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
case
LVN_ENDLABELEDIT
:
/* always accept new item text */
return
TRUE
;
case
LVN_BEGINSCROLL
:
case
LVN_ENDSCROLL
:
{
NMLVSCROLL
*
pScroll
=
(
NMLVSCROLL
*
)
lParam
;
trace
(
"LVN_%sSCROLL: (%d,%d)
\n
"
,
pScroll
->
hdr
.
code
==
LVN_BEGINSCROLL
?
"BEGIN"
:
"END"
,
pScroll
->
dx
,
pScroll
->
dy
);
}
break
;
}
break
;
}
...
...
@@ -3778,6 +3793,45 @@ static void test_getcolumnwidth(void)
DestroyWindow
(
hwnd
);
}
static
void
test_scrollnotify
(
void
)
{
HWND
hwnd
;
DWORD
ret
;
hwnd
=
create_listview_control
(
0
);
insert_column
(
hwnd
,
0
);
insert_column
(
hwnd
,
1
);
insert_item
(
hwnd
,
0
);
/* make it scrollable - resize */
ret
=
SendMessage
(
hwnd
,
LVM_SETCOLUMNWIDTH
,
0
,
MAKELPARAM
(
100
,
0
));
expect
(
TRUE
,
ret
);
ret
=
SendMessage
(
hwnd
,
LVM_SETCOLUMNWIDTH
,
1
,
MAKELPARAM
(
100
,
0
));
expect
(
TRUE
,
ret
);
/* try with dummy call */
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
ret
=
SendMessage
(
hwnd
,
LVM_SCROLL
,
0
,
0
);
expect
(
TRUE
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
scroll_parent_seq
,
"scroll notify 1"
,
TRUE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
ret
=
SendMessage
(
hwnd
,
LVM_SCROLL
,
1
,
0
);
expect
(
TRUE
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
scroll_parent_seq
,
"scroll notify 2"
,
TRUE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
ret
=
SendMessage
(
hwnd
,
LVM_SCROLL
,
1
,
1
);
expect
(
TRUE
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
scroll_parent_seq
,
"scroll notify 3"
,
TRUE
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
listview
)
{
HMODULE
hComctl32
;
...
...
@@ -3844,6 +3898,7 @@ START_TEST(listview)
test_get_set_view
();
test_canceleditlabel
();
test_mapidindex
();
test_scrollnotify
();
unload_v6_module
(
ctx_cookie
);
...
...
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