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
0fd772be
Commit
0fd772be
authored
Dec 29, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix style in autocomplete tests to more match the typical style used in the rest of Wine.
parent
88219db8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
autocomplete.c
dlls/shell32/tests/autocomplete.c
+14
-5
No files found.
dlls/shell32/tests/autocomplete.c
View file @
0fd772be
...
...
@@ -33,7 +33,8 @@ static HWND hMainWnd, hEdit;
static
HINSTANCE
hinst
;
static
int
killfocus_count
;
static
BOOL
test_init
(
void
)
{
static
BOOL
test_init
(
void
)
{
HRESULT
r
;
IAutoComplete
*
ac
;
IUnknown
*
acSource
;
...
...
@@ -64,7 +65,9 @@ static BOOL test_init(void) {
return
TRUE
;
}
static
void
test_killfocus
(
void
)
{
static
void
test_killfocus
(
void
)
{
/* Test if WM_KILLFOCUS messages are handled properly by checking if
* the parent receives an EN_KILLFOCUS message. */
SetFocus
(
hEdit
);
...
...
@@ -72,7 +75,9 @@ static void test_killfocus(void) {
SetFocus
(
0
);
ok
(
killfocus_count
==
1
,
"Expected one EN_KILLFOCUS message, got: %d
\n
"
,
killfocus_count
);
}
static
LRESULT
CALLBACK
MyWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
LRESULT
CALLBACK
MyWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
msg
)
{
case
WM_CREATE
:
/* create edit control */
...
...
@@ -87,7 +92,9 @@ static LRESULT CALLBACK MyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPa
}
return
DefWindowProcA
(
hWnd
,
msg
,
wParam
,
lParam
);
}
static
void
createMainWnd
(
void
)
{
static
void
createMainWnd
(
void
)
{
WNDCLASSA
wc
;
wc
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wc
.
cbClsExtra
=
0
;
...
...
@@ -104,7 +111,9 @@ static void createMainWnd(void) {
hMainWnd
=
CreateWindowExA
(
0
,
"MyTestWnd"
,
"Blah"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
130
,
105
,
NULL
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
}
START_TEST
(
autocomplete
)
{
START_TEST
(
autocomplete
)
{
HRESULT
r
;
MSG
msg
;
...
...
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