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
36b72035
Commit
36b72035
authored
May 07, 2020
by
Zhiyi Zhang
Committed by
Alexandre Julliard
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test restoring a full screen window with WS_THICKFRAME style.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f00b88ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
win.c
dlls/user32/tests/win.c
+30
-0
No files found.
dlls/user32/tests/win.c
View file @
36b72035
...
...
@@ -8306,6 +8306,7 @@ static void test_fullscreen(void)
0
,
WS_EX_APPWINDOW
,
WS_EX_TOOLWINDOW
};
WNDCLASSA
cls
;
int
timeout
;
HWND
hwnd
;
int
i
,
j
;
POINT
pt
;
...
...
@@ -8429,6 +8430,35 @@ static void test_fullscreen(void)
}
}
/* Test restoring a full screen window with WS_THICKFRAME style to normal */
/* Add WS_THICKFRAME style later so that the window can cover the entire monitor */
hwnd
=
CreateWindowA
(
"fullscreen_class"
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
0
,
0
,
mi
.
rcMonitor
.
right
,
mi
.
rcMonitor
.
bottom
,
NULL
,
NULL
,
GetModuleHandleA
(
NULL
),
NULL
);
ok
(
!!
hwnd
,
"CreateWindow failed, error %#x.
\n
"
,
GetLastError
());
flush_events
(
TRUE
);
/* Add WS_THICKFRAME and exit full screen */
SetWindowLongA
(
hwnd
,
GWL_STYLE
,
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
|
WS_THICKFRAME
);
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
100
,
100
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOCOPYBITS
);
flush_events
(
TRUE
);
/* TestBots need about 1000ms to exit full screen */
timeout
=
1000
;
while
(
timeout
>
0
)
{
timeout
-=
200
;
flush_events
(
TRUE
);
GetWindowRect
(
hwnd
,
&
rc
);
if
(
rc
.
right
-
rc
.
left
==
100
&&
rc
.
bottom
-
rc
.
top
==
100
)
break
;
}
/* FVWM used by TestBots are not EWMH compliant. So this bug doesn't appear. */
todo_wine_if
(
rc
.
right
-
rc
.
left
!=
100
)
ok
(
rc
.
right
-
rc
.
left
==
100
,
"Expect width %d, got %d.
\n
"
,
100
,
rc
.
right
-
rc
.
left
);
todo_wine_if
(
rc
.
bottom
-
rc
.
top
!=
100
)
ok
(
rc
.
bottom
-
rc
.
top
==
100
,
"Expect height %d, got %d.
\n
"
,
100
,
rc
.
bottom
-
rc
.
top
);
DestroyWindow
(
hwnd
);
UnregisterClassA
(
"fullscreen_class"
,
GetModuleHandleA
(
NULL
));
}
...
...
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