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
3dd68caa
Commit
3dd68caa
authored
Aug 12, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test creating a fullscreen window spanning multiple monitors.
parent
736ae290
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
win.c
dlls/user32/tests/win.c
+43
-1
No files found.
dlls/user32/tests/win.c
View file @
3dd68caa
...
...
@@ -9113,12 +9113,12 @@ static void test_fullscreen(void)
static
const
DWORD
t_ex_style
[]
=
{
0
,
WS_EX_APPWINDOW
,
WS_EX_TOOLWINDOW
};
RECT
rc
,
virtual_rect
,
expected_rect
;
WNDCLASSA
cls
;
int
timeout
;
HWND
hwnd
;
int
i
,
j
;
POINT
pt
;
RECT
rc
;
HMONITOR
hmon
;
LRESULT
ret
;
...
...
@@ -9265,6 +9265,48 @@ static void test_fullscreen(void)
DestroyWindow
(
hwnd
);
UnregisterClassA
(
"fullscreen_class"
,
GetModuleHandleA
(
NULL
));
/* Test fullscreen windows spanning multiple monitors */
if
(
GetSystemMetrics
(
SM_CMONITORS
)
>
1
)
{
/* Test windows covering all monitors */
virtual_rect
.
left
=
GetSystemMetrics
(
SM_XVIRTUALSCREEN
);
virtual_rect
.
top
=
GetSystemMetrics
(
SM_YVIRTUALSCREEN
);
virtual_rect
.
right
=
virtual_rect
.
left
+
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
);
virtual_rect
.
bottom
=
virtual_rect
.
top
+
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
);
hwnd
=
CreateWindowA
(
"static"
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
virtual_rect
.
left
,
virtual_rect
.
top
,
virtual_rect
.
right
-
virtual_rect
.
left
,
virtual_rect
.
bottom
-
virtual_rect
.
top
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!!
hwnd
,
"CreateWindow failed, error %#lx.
\n
"
,
GetLastError
());
flush_events
(
TRUE
);
GetWindowRect
(
hwnd
,
&
rc
);
todo_wine
ok
(
EqualRect
(
&
rc
,
&
virtual_rect
),
"Expected %s, got %s.
\n
"
,
wine_dbgstr_rect
(
&
virtual_rect
),
wine_dbgstr_rect
(
&
rc
));
DestroyWindow
(
hwnd
);
/* Test windows covering one monitor and 1 pixel larger on available sides */
expected_rect
=
mi
.
rcMonitor
;
InflateRect
(
&
expected_rect
,
1
,
1
);
IntersectRect
(
&
expected_rect
,
&
expected_rect
,
&
virtual_rect
);
hwnd
=
CreateWindowA
(
"static"
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
expected_rect
.
left
,
expected_rect
.
top
,
expected_rect
.
right
-
expected_rect
.
left
,
expected_rect
.
bottom
-
expected_rect
.
top
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!!
hwnd
,
"CreateWindow failed, error %#lx.
\n
"
,
GetLastError
());
flush_events
(
TRUE
);
GetWindowRect
(
hwnd
,
&
rc
);
todo_wine
ok
(
EqualRect
(
&
rc
,
&
expected_rect
),
"Expected %s, got %s.
\n
"
,
wine_dbgstr_rect
(
&
expected_rect
),
wine_dbgstr_rect
(
&
rc
));
DestroyWindow
(
hwnd
);
}
else
{
skip
(
"This test requires at least two monitors.
\n
"
);
}
}
static
BOOL
test_thick_child_got_minmax
;
...
...
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