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
1e5faee2
Commit
1e5faee2
authored
Apr 23, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a test for sending WM_KEYDOWN to a child edit control.
parent
97e1fef0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
edit.c
dlls/user32/tests/edit.c
+32
-0
No files found.
dlls/user32/tests/edit.c
View file @
1e5faee2
...
...
@@ -1906,6 +1906,37 @@ static void test_singleline_wantreturn_edit_dialog(void)
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
}
static
int
child_edit_wmkeydown_num_messages
=
0
;
static
INT_PTR
CALLBACK
child_edit_wmkeydown_proc
(
HWND
hdlg
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
switch
(
msg
)
{
case
WM_DESTROY
:
case
WM_NCDESTROY
:
break
;
default:
child_edit_wmkeydown_num_messages
++
;
break
;
}
return
FALSE
;
}
static
void
test_child_edit_wmkeydown
(
void
)
{
HWND
hwEdit
,
hwParent
;
int
r
;
hwEdit
=
create_child_editcontrol
(
0
,
0
);
hwParent
=
GetParent
(
hwEdit
);
SetWindowLong
(
hwParent
,
GWL_WNDPROC
,
(
LONG
)
child_edit_wmkeydown_proc
);
r
=
SendMessage
(
hwEdit
,
WM_KEYDOWN
,
VK_RETURN
,
0x1c0001
);
todo_wine
ok
(
1
==
r
,
"expected 1, got %d
\n
"
,
r
);
todo_wine
ok
(
0
==
child_edit_wmkeydown_num_messages
,
"expected 0, got %d
\n
"
,
child_edit_wmkeydown_num_messages
);
destroy_child_editcontrol
(
hwEdit
);
}
static
BOOL
RegisterWindowClasses
(
void
)
{
WNDCLASSA
test2
;
...
...
@@ -1980,6 +2011,7 @@ START_TEST(edit)
test_multi_edit_dialog
();
test_wantreturn_edit_dialog
();
test_singleline_wantreturn_edit_dialog
();
test_child_edit_wmkeydown
();
UnregisterWindowClasses
();
}
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