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
f35dabad
Commit
f35dabad
authored
Jul 20, 2010
by
Dylan Smith
Committed by
Alexandre Julliard
Jul 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Minimized windows shouldn't be resizable.
parent
5fc17a28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
win.c
dlls/user32/tests/win.c
+10
-2
No files found.
dlls/user32/tests/win.c
View file @
f35dabad
...
...
@@ -4872,7 +4872,7 @@ static void test_ShowWindow(void)
{
HWND
hwnd
;
DWORD
style
;
RECT
rcMain
,
rc
;
RECT
rcMain
,
rc
,
rcMinimized
;
LPARAM
ret
;
SetRect
(
&
rcMain
,
120
,
120
,
210
,
210
);
...
...
@@ -4914,8 +4914,16 @@ static void test_ShowWindow(void)
ok
(
style
&
WS_VISIBLE
,
"window should be visible
\n
"
);
ok
(
style
&
WS_MINIMIZE
,
"window should be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rcMinimized
);
ok
(
!
EqualRect
(
&
rcMain
,
&
rcMinimized
),
"rects shouldn't match
\n
"
);
/* shouldn't be able to resize minized windows */
ret
=
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
(
rcMinimized
.
right
-
rcMinimized
.
left
)
*
2
,
(
rcMinimized
.
bottom
-
rcMinimized
.
top
)
*
2
,
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
!
EqualRect
(
&
rcMain
,
&
rc
),
"rects shouldn't
match
\n
"
);
todo_wine
ok
(
EqualRect
(
&
rc
,
&
rcMinimized
),
"rects should
match
\n
"
);
ShowWindow
(
hwnd
,
SW_RESTORE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
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