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
69d90522
Commit
69d90522
authored
Feb 14, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use existing macros for control class names.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9d897b73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
button.c
dlls/comctl32/tests/button.c
+1
-1
combo.c
dlls/comctl32/tests/combo.c
+3
-3
static.c
dlls/comctl32/tests/static.c
+2
-1
status.c
dlls/comctl32/tests/status.c
+1
-1
No files found.
dlls/comctl32/tests/button.c
View file @
69d90522
...
...
@@ -454,7 +454,7 @@ static HWND create_button(DWORD style, HWND parent)
style
|=
WS_CHILD
|
BS_NOTIFY
;
menuid
=
(
HMENU
)
ID_BUTTON
;
}
hwnd
=
CreateWindowExA
(
0
,
"Button"
,
"test"
,
style
,
0
,
0
,
50
,
14
,
parent
,
menuid
,
0
,
NULL
);
hwnd
=
CreateWindowExA
(
0
,
WC_BUTTONA
,
"test"
,
style
,
0
,
0
,
50
,
14
,
parent
,
menuid
,
0
,
NULL
);
ok
(
hwnd
!=
NULL
,
"failed to create a button, 0x%08x, %p
\n
"
,
style
,
parent
);
pSetWindowSubclass
(
hwnd
,
button_subclass_proc
,
0
,
0
);
return
hwnd
;
...
...
dlls/comctl32/tests/combo.c
View file @
69d90522
...
...
@@ -507,7 +507,7 @@ static BOOL init(void)
wc
.
lpfnWndProc
=
ComboExTestWndProc
;
RegisterClassA
(
&
wc
);
hMainWnd
=
CreateWindowA
(
"static"
,
"Test"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
300
,
300
,
NULL
,
NULL
,
NULL
,
0
);
hMainWnd
=
CreateWindowA
(
WC_STATICA
,
"Test"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
300
,
300
,
NULL
,
NULL
,
NULL
,
0
);
ShowWindow
(
hMainWnd
,
SW_SHOW
);
hComboExParentWnd
=
CreateWindowExA
(
0
,
ComboExTestClass
,
"ComboEx test"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
...
...
@@ -606,7 +606,7 @@ static void test_comboex_get_set_item(void)
static
HWND
create_combobox
(
DWORD
style
)
{
return
CreateWindowA
(
"ComboBox"
,
"Combo"
,
WS_VISIBLE
|
WS_CHILD
|
style
,
5
,
5
,
100
,
100
,
hMainWnd
,
(
HMENU
)
COMBO_ID
,
NULL
,
0
);
return
CreateWindowA
(
WC_COMBOBOXA
,
"Combo"
,
WS_VISIBLE
|
WS_CHILD
|
style
,
5
,
5
,
100
,
100
,
hMainWnd
,
(
HMENU
)
COMBO_ID
,
NULL
,
0
);
}
static
int
font_height
(
HFONT
hFont
)
...
...
@@ -1035,7 +1035,7 @@ static void test_combo_editselection_focus(DWORD style)
get_combobox_info
(
hCombo
,
&
cbInfo
);
hEdit
=
cbInfo
.
hwndItem
;
hButton
=
CreateWindowA
(
"Button"
,
"OK"
,
WS_VISIBLE
|
WS_CHILD
|
BS_DEFPUSHBUTTON
,
hButton
=
CreateWindowA
(
WC_BUTTONA
,
"OK"
,
WS_VISIBLE
|
WS_CHILD
|
BS_DEFPUSHBUTTON
,
5
,
50
,
100
,
20
,
hMainWnd
,
NULL
,
(
HINSTANCE
)
GetWindowLongPtrA
(
hMainWnd
,
GWLP_HINSTANCE
),
NULL
);
...
...
dlls/comctl32/tests/static.c
View file @
69d90522
...
...
@@ -23,6 +23,7 @@
#define STRICT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "commctrl.h"
#include "wine/test.h"
...
...
@@ -53,7 +54,7 @@ static void flush_events(void)
static
HWND
create_static
(
DWORD
style
)
{
return
CreateWindowA
(
"static"
,
"Test"
,
WS_VISIBLE
|
WS_CHILD
|
style
,
5
,
5
,
100
,
100
,
hMainWnd
,
(
HMENU
)
CTRL_ID
,
NULL
,
0
);
return
CreateWindowA
(
WC_STATICA
,
"Test"
,
WS_VISIBLE
|
WS_CHILD
|
style
,
5
,
5
,
100
,
100
,
hMainWnd
,
(
HMENU
)
CTRL_ID
,
NULL
,
0
);
}
static
LRESULT
CALLBACK
WndProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
dlls/comctl32/tests/status.c
View file @
69d90522
...
...
@@ -607,7 +607,7 @@ START_TEST(status)
iccex
.
dwICC
=
ICC_BAR_CLASSES
;
pInitCommonControlsEx
(
&
iccex
);
g_hMainWnd
=
CreateWindowExA
(
0
,
"static"
,
""
,
WS_OVERLAPPEDWINDOW
,
g_hMainWnd
=
CreateWindowExA
(
0
,
WC_STATICA
,
""
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
672
+
2
*
GetSystemMetrics
(
SM_CXSIZEFRAME
),
226
+
GetSystemMetrics
(
SM_CYCAPTION
)
+
2
*
GetSystemMetrics
(
SM_CYSIZEFRAME
),
NULL
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
...
...
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