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
1d1f1373
Commit
1d1f1373
authored
Apr 02, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add more edit dialog tests.
parent
1eba09b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
edit.c
dlls/user32/tests/edit.c
+33
-1
No files found.
dlls/user32/tests/edit.c
View file @
1d1f1373
...
...
@@ -90,6 +90,19 @@ static INT_PTR CALLBACK edit_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPA
PostMessage
(
hdlg
,
WM_USER
,
0xdeadbeef
,
1
);
break
;
/* multiple tab tests */
case
9
:
PostMessage
(
hedit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
PostMessage
(
hedit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
PostMessage
(
hdlg
,
WM_USER
,
0xdeadbeef
,
2
);
break
;
case
10
:
PostMessage
(
hedit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
PostMessage
(
hedit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
PostMessage
(
hedit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
PostMessage
(
hdlg
,
WM_USER
,
0xdeadbeef
,
2
);
break
;
default:
break
;
}
...
...
@@ -119,7 +132,9 @@ static INT_PTR CALLBACK edit_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPA
{
int
len
;
HWND
hok
=
GetDlgItem
(
hdlg
,
IDOK
);
HWND
hcancel
=
GetDlgItem
(
hdlg
,
IDCANCEL
);
HWND
hedit
=
GetDlgItem
(
hdlg
,
1000
);
HWND
hfocus
=
GetFocus
();
if
(
wparam
!=
0xdeadbeef
)
break
;
...
...
@@ -136,12 +151,23 @@ static INT_PTR CALLBACK edit_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPA
case
1
:
len
=
SendMessage
(
hedit
,
WM_GETTEXTLENGTH
,
0
,
0
);
if
((
GetFocus
()
==
hok
)
&&
len
==
0
)
if
((
hfocus
==
hok
)
&&
len
==
0
)
EndDialog
(
hdlg
,
444
);
else
EndDialog
(
hdlg
,
555
);
break
;
case
2
:
if
(
hfocus
==
hok
)
EndDialog
(
hdlg
,
11
);
else
if
(
hfocus
==
hcancel
)
EndDialog
(
hdlg
,
22
);
else
if
(
hfocus
==
hedit
)
EndDialog
(
hdlg
,
33
);
else
EndDialog
(
hdlg
,
44
);
break
;
default:
EndDialog
(
hdlg
,
555
);
}
...
...
@@ -1307,6 +1333,12 @@ static void test_edit_dialog(void)
todo_wine
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* multiple tab tests */
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
9
);
ok
(
22
==
r
,
"Expected %d, got %d
\n
"
,
22
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
10
);
ok
(
33
==
r
,
"Expected %d, got %d
\n
"
,
33
,
r
);
}
static
BOOL
RegisterWindowClasses
(
void
)
...
...
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