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
a709e3f9
Commit
a709e3f9
authored
May 12, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Added a test for NM_RETURN.
parent
75afeb47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
treeview.c
dlls/comctl32/tests/treeview.c
+31
-0
treeview.c
dlls/comctl32/treeview.c
+1
-1
No files found.
dlls/comctl32/tests/treeview.c
View file @
a709e3f9
...
...
@@ -252,6 +252,13 @@ static const struct message parent_cd_seq[] = {
{
0
}
};
static
const
struct
message
parent_vk_return_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_KEYDOWN
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
NM_RETURN
},
{
WM_CHANGEUISTATE
,
sent
|
optional
},
{
0
}
};
static
HWND
hMainWnd
;
static
HTREEITEM
hRoot
,
hChild
;
...
...
@@ -2126,6 +2133,29 @@ static void test_customdraw(void)
DestroyWindow
(
hwnd
);
}
static
void
test_WM_KEYDOWN
(
void
)
{
static
const
char
*
rootA
=
"root"
;
TVINSERTSTRUCTA
ins
;
HTREEITEM
hRoot
;
HWND
hwnd
;
hwnd
=
create_treeview_control
(
0
);
ins
.
hParent
=
TVI_ROOT
;
ins
.
hInsertAfter
=
TVI_ROOT
;
U
(
ins
).
item
.
mask
=
TVIF_TEXT
;
U
(
ins
).
item
.
pszText
=
(
char
*
)
rootA
;
hRoot
=
TreeView_InsertItemA
(
hwnd
,
&
ins
);
ok
(
hRoot
!=
NULL
,
"got %p
\n
"
,
hRoot
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
SendMessageA
(
hwnd
,
WM_KEYDOWN
,
VK_RETURN
,
0
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_vk_return_seq
,
"WM_KEYDOWN/VK_RETURN parent notification"
,
TRUE
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
treeview
)
{
HMODULE
hComctl32
;
...
...
@@ -2200,6 +2230,7 @@ START_TEST(treeview)
test_TVM_HITTEST
();
test_WM_GETDLGCODE
();
test_customdraw
();
test_WM_KEYDOWN
();
if
(
!
load_v6_module
(
&
ctx_cookie
,
&
hCtx
))
{
...
...
dlls/comctl32/treeview.c
View file @
a709e3f9
...
...
@@ -5261,7 +5261,7 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
case
VK_RETURN
:
TREEVIEW_SendSimpleNotify
(
infoPtr
,
NM_RETURN
);
break
;
break
;
case
VK_HOME
:
newSelection
=
infoPtr
->
root
->
firstChild
;
...
...
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