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
010eb02d
Commit
010eb02d
authored
Apr 03, 2022
by
Rafał Harabień
Committed by
Alexandre Julliard
Apr 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add more static control tests.
Signed-off-by:
Rafał Harabień
<
rafalh92@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1a18f3b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
static.c
dlls/comctl32/tests/static.c
+29
-4
No files found.
dlls/comctl32/tests/static.c
View file @
010eb02d
...
...
@@ -82,10 +82,29 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
static
void
test_updates
(
int
style
,
int
flags
)
{
HWND
hStatic
=
create_static
(
style
);
RECT
r1
=
{
20
,
20
,
30
,
30
};
RECT
r1
=
{
20
,
20
,
30
,
30
}
,
rcClient
;
int
exp
;
LONG
exstyle
;
flush_events
();
trace
(
"Testing style 0x%x
\n
"
,
style
);
exstyle
=
GetWindowLongW
(
hStatic
,
GWL_EXSTYLE
);
if
(
style
==
SS_ETCHEDHORZ
||
style
==
SS_ETCHEDVERT
||
style
==
SS_SUNKEN
)
todo_wine_if
(
style
==
SS_ETCHEDHORZ
||
style
==
SS_ETCHEDVERT
)
ok
(
exstyle
==
WS_EX_STATICEDGE
,
"expected WS_EX_STATICEDGE, got %d
\n
"
,
exstyle
);
else
ok
(
exstyle
==
0
,
"expected 0, got %ld
\n
"
,
exstyle
);
GetClientRect
(
hStatic
,
&
rcClient
);
if
(
style
==
SS_ETCHEDVERT
)
todo_wine
ok
(
rcClient
.
right
==
0
,
"expected zero width, got %d
\n
"
,
rcClient
.
right
);
else
ok
(
rcClient
.
right
>
0
,
"expected non-zero width, got %ld
\n
"
,
rcClient
.
right
);
if
(
style
==
SS_ETCHEDHORZ
)
todo_wine
ok
(
rcClient
.
bottom
==
0
,
"expected zero height, got %d
\n
"
,
rcClient
.
bottom
);
else
ok
(
rcClient
.
bottom
>
0
,
"expected non-zero height, got %ld
\n
"
,
rcClient
.
bottom
);
g_nReceivedColorStatic
=
0
;
/* during each update parent WndProc will test the WM_CTLCOLORSTATIC message */
InvalidateRect
(
hMainWnd
,
NULL
,
FALSE
);
...
...
@@ -404,14 +423,20 @@ START_TEST(static)
ShowWindow
(
hMainWnd
,
SW_SHOW
);
test_updates
(
0
,
0
);
test_updates
(
SS_SIMPLE
,
0
);
test_updates
(
SS_ICON
,
0
);
test_updates
(
SS_BITMAP
,
0
);
test_updates
(
SS_BITMAP
|
SS_CENTERIMAGE
,
0
);
test_updates
(
SS_BLACKRECT
,
TODO_COUNT
);
test_updates
(
SS_WHITERECT
,
TODO_COUNT
);
test_updates
(
SS_BLACKFRAME
,
TODO_COUNT
);
test_updates
(
SS_WHITEFRAME
,
TODO_COUNT
);
test_updates
(
SS_USERITEM
,
TODO_COUNT
);
test_updates
(
SS_SIMPLE
,
0
);
test_updates
(
SS_OWNERDRAW
,
0
);
test_updates
(
SS_BITMAP
,
0
);
test_updates
(
SS_BITMAP
|
SS_CENTERIMAGE
,
0
);
test_updates
(
SS_ETCHEDHORZ
,
TODO_COUNT
);
test_updates
(
SS_ETCHEDVERT
,
TODO_COUNT
);
test_updates
(
SS_ETCHEDFRAME
,
TODO_COUNT
);
test_updates
(
SS_SUNKEN
,
0
);
test_set_text
();
test_set_image
();
test_STM_SETIMAGE
();
...
...
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