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
0483e2b4
Commit
0483e2b4
authored
Oct 07, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Print context in window style tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
de9982f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
39 deletions
+54
-39
win.c
dlls/user32/tests/win.c
+54
-39
No files found.
dlls/user32/tests/win.c
View file @
0483e2b4
...
...
@@ -4546,48 +4546,63 @@ static void check_window_style(DWORD dwStyleIn, DWORD dwExStyleIn, DWORD dwStyle
/* tests what window styles the window manager automatically adds */
static
void
test_window_styles
(
void
)
{
register_style_check_class
();
static
const
struct
{
DWORD
style_in
;
DWORD
exstyle_in
;
DWORD
style_out
;
DWORD
exstyle_out
;
}
tests
[]
=
{
{
0
,
0
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
},
{
WS_DLGFRAME
,
0
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
},
{
WS_THICKFRAME
,
0
,
WS_THICKFRAME
|
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
},
{
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
|
WS_EX_STATICEDGE
},
{
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_THICKFRAME
|
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
|
WS_EX_STATICEDGE
},
{
WS_OVERLAPPEDWINDOW
,
0
,
WS_CLIPSIBLINGS
|
WS_OVERLAPPEDWINDOW
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
,
0
,
WS_CHILD
,
0
},
{
WS_CHILD
|
WS_DLGFRAME
,
0
,
WS_CHILD
|
WS_DLGFRAME
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
|
WS_THICKFRAME
,
0
,
WS_CHILD
|
WS_THICKFRAME
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
},
{
WS_CHILD
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
},
{
WS_CHILD
|
WS_CAPTION
,
0
,
WS_CHILD
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
|
WS_CAPTION
|
WS_SYSMENU
,
0
,
WS_CHILD
|
WS_CAPTION
|
WS_SYSMENU
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
,
WS_EX_WINDOWEDGE
,
WS_CHILD
,
0
},
{
WS_CHILD
,
WS_EX_DLGMODALFRAME
,
WS_CHILD
,
WS_EX_WINDOWEDGE
|
WS_EX_DLGMODALFRAME
},
{
WS_CHILD
,
WS_EX_DLGMODALFRAME
|
WS_EX_STATICEDGE
,
WS_CHILD
,
WS_EX_STATICEDGE
|
WS_EX_WINDOWEDGE
|
WS_EX_DLGMODALFRAME
},
{
WS_CHILD
|
WS_POPUP
,
0
,
WS_CHILD
|
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
},
{
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
,
0
,
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
,
0
,
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
},
{
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
},
{
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
},
{
WS_CHILD
|
WS_POPUP
,
WS_EX_APPWINDOW
,
WS_CHILD
|
WS_POPUP
|
WS_CLIPSIBLINGS
,
WS_EX_APPWINDOW
},
{
WS_CHILD
|
WS_POPUP
,
WS_EX_WINDOWEDGE
,
WS_CHILD
|
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
},
{
WS_CHILD
,
WS_EX_WINDOWEDGE
,
WS_CHILD
,
0
},
{
0
,
WS_EX_TOOLWINDOW
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
|
WS_EX_TOOLWINDOW
},
{
WS_POPUP
,
0
,
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
},
{
WS_POPUP
,
WS_EX_WINDOWEDGE
,
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
},
{
WS_POPUP
|
WS_DLGFRAME
,
0
,
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
},
{
WS_POPUP
|
WS_THICKFRAME
,
0
,
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
},
{
WS_POPUP
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
},
{
WS_POPUP
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
},
{
WS_CAPTION
,
WS_EX_STATICEDGE
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_STATICEDGE
|
WS_EX_WINDOWEDGE
},
{
0
,
WS_EX_APPWINDOW
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_APPWINDOW
|
WS_EX_WINDOWEDGE
},
{
0
,
WS_EX_LAYERED
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_LAYERED
|
WS_EX_WINDOWEDGE
},
{
0
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
|
WS_EX_WINDOWEDGE
},
{
0
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
|
WS_EX_TOOLWINDOW
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
|
WS_EX_TOOLWINDOW
|
WS_EX_WINDOWEDGE
},
};
int
i
;
check_window_style
(
0
,
0
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_DLGFRAME
,
0
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_THICKFRAME
,
0
,
WS_THICKFRAME
|
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
|
WS_EX_STATICEDGE
);
check_window_style
(
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_THICKFRAME
|
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
|
WS_EX_STATICEDGE
);
check_window_style
(
WS_OVERLAPPEDWINDOW
,
0
,
WS_CLIPSIBLINGS
|
WS_OVERLAPPEDWINDOW
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
,
0
,
WS_CHILD
,
0
);
check_window_style
(
WS_CHILD
|
WS_DLGFRAME
,
0
,
WS_CHILD
|
WS_DLGFRAME
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
|
WS_THICKFRAME
,
0
,
WS_CHILD
|
WS_THICKFRAME
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
);
check_window_style
(
WS_CHILD
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
);
check_window_style
(
WS_CHILD
|
WS_CAPTION
,
0
,
WS_CHILD
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
|
WS_CAPTION
|
WS_SYSMENU
,
0
,
WS_CHILD
|
WS_CAPTION
|
WS_SYSMENU
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
,
WS_EX_WINDOWEDGE
,
WS_CHILD
,
0
);
check_window_style
(
WS_CHILD
,
WS_EX_DLGMODALFRAME
,
WS_CHILD
,
WS_EX_WINDOWEDGE
|
WS_EX_DLGMODALFRAME
);
check_window_style
(
WS_CHILD
,
WS_EX_DLGMODALFRAME
|
WS_EX_STATICEDGE
,
WS_CHILD
,
WS_EX_STATICEDGE
|
WS_EX_WINDOWEDGE
|
WS_EX_DLGMODALFRAME
);
check_window_style
(
WS_CHILD
|
WS_POPUP
,
0
,
WS_CHILD
|
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
);
check_window_style
(
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
,
0
,
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
,
0
,
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
);
check_window_style
(
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_CHILD
|
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
);
check_window_style
(
WS_CHILD
|
WS_POPUP
,
WS_EX_APPWINDOW
,
WS_CHILD
|
WS_POPUP
|
WS_CLIPSIBLINGS
,
WS_EX_APPWINDOW
);
check_window_style
(
WS_CHILD
|
WS_POPUP
,
WS_EX_WINDOWEDGE
,
WS_CHILD
|
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
);
check_window_style
(
WS_CHILD
,
WS_EX_WINDOWEDGE
,
WS_CHILD
,
0
);
check_window_style
(
0
,
WS_EX_TOOLWINDOW
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_WINDOWEDGE
|
WS_EX_TOOLWINDOW
);
check_window_style
(
WS_POPUP
,
0
,
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
);
check_window_style
(
WS_POPUP
,
WS_EX_WINDOWEDGE
,
WS_POPUP
|
WS_CLIPSIBLINGS
,
0
);
check_window_style
(
WS_POPUP
|
WS_DLGFRAME
,
0
,
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_POPUP
|
WS_THICKFRAME
,
0
,
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_WINDOWEDGE
);
check_window_style
(
WS_POPUP
|
WS_DLGFRAME
,
WS_EX_STATICEDGE
,
WS_POPUP
|
WS_DLGFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
);
check_window_style
(
WS_POPUP
|
WS_THICKFRAME
,
WS_EX_STATICEDGE
,
WS_POPUP
|
WS_THICKFRAME
|
WS_CLIPSIBLINGS
,
WS_EX_STATICEDGE
);
check_window_style
(
WS_CAPTION
,
WS_EX_STATICEDGE
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_STATICEDGE
|
WS_EX_WINDOWEDGE
);
check_window_style
(
0
,
WS_EX_APPWINDOW
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_APPWINDOW
|
WS_EX_WINDOWEDGE
);
register_style_check_class
();
if
(
pGetLayeredWindowAttributes
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
check_window_style
(
0
,
WS_EX_LAYERED
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_LAYERED
|
WS_EX_WINDOWEDGE
);
check_window_style
(
0
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
|
WS_EX_WINDOWEDGE
);
check_window_style
(
0
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
|
WS_EX_TOOLWINDOW
,
WS_CLIPSIBLINGS
|
WS_CAPTION
,
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
|
WS_EX_TOOLWINDOW
|
WS_EX_WINDOWEDGE
);
if
((
tests
[
i
].
exstyle_in
&
WS_EX_LAYERED
)
&&
!
pGetLayeredWindowAttributes
)
continue
;
winetest_push_context
(
"style %#x exstyle %#x"
,
tests
[
i
].
style_in
,
tests
[
i
].
exstyle_in
);
check_window_style
(
tests
[
i
].
style_in
,
tests
[
i
].
exstyle_in
,
tests
[
i
].
style_out
,
tests
[
i
].
exstyle_out
);
winetest_pop_context
();
}
}
...
...
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