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
82cf3456
Commit
82cf3456
authored
Nov 13, 2017
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Make WS_EX_TOPMOST tests more generic.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
91b09e0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
win.c
dlls/user32/tests/win.c
+20
-11
No files found.
dlls/user32/tests/win.c
View file @
82cf3456
...
...
@@ -9856,20 +9856,29 @@ static void test_desktop( void )
}
}
static
void
test_topmost
(
HWND
hwnd
)
static
BOOL
is_topmost
(
HWND
hwnd
)
{
return
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
)
!=
0
;
}
static
void
swp_after
(
HWND
hwnd
,
HWND
after
)
{
BOOL
ret
;
ok
(
!
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
),
"WS_EX_TOPMOST should not be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
,
"WS_EX_TOPMOST should be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
,
"WS_EX_TOPMOST should be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_NOTOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
!
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
),
"WS_EX_TOPMOST should not be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
after
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"SetWindowPos failed
\n
"
);
}
static
void
test_topmost
(
HWND
hwnd
)
{
ok
(
!
is_topmost
(
hwnd
),
"WS_EX_TOPMOST should not be set
\n
"
);
swp_after
(
hwnd
,
HWND_TOPMOST
);
ok
(
is_topmost
(
hwnd
),
"WS_EX_TOPMOST should be set
\n
"
);
swp_after
(
hwnd
,
HWND_TOP
);
ok
(
is_topmost
(
hwnd
),
"WS_EX_TOPMOST should be set
\n
"
);
swp_after
(
hwnd
,
HWND_NOTOPMOST
);
ok
(
!
is_topmost
(
hwnd
),
"WS_EX_TOPMOST should not be set
\n
"
);
}
START_TEST
(
win
)
...
...
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