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
319fa1c3
Commit
319fa1c3
authored
May 04, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more tests for focus behavior when hiding/showing windows.
parent
cfc3943c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
win.c
dlls/user/tests/win.c
+11
-0
No files found.
dlls/user/tests/win.c
View file @
319fa1c3
...
@@ -1305,6 +1305,17 @@ static void test_SetFocus(HWND hwnd)
...
@@ -1305,6 +1305,17 @@ static void test_SetFocus(HWND hwnd)
SetFocus
(
child
);
SetFocus
(
child
);
ok
(
GetFocus
()
==
child
,
"Failed to set focus to invisible child %p
\n
"
,
child
);
ok
(
GetFocus
()
==
child
,
"Failed to set focus to invisible child %p
\n
"
,
child
);
ok
(
!
(
GetWindowLong
(
child
,
GWL_STYLE
)
&
WS_VISIBLE
),
"Child %p is visible
\n
"
,
child
);
ok
(
!
(
GetWindowLong
(
child
,
GWL_STYLE
)
&
WS_VISIBLE
),
"Child %p is visible
\n
"
,
child
);
ShowWindow
(
child
,
SW_SHOW
);
ok
(
GetWindowLong
(
child
,
GWL_STYLE
)
&
WS_VISIBLE
,
"Child %p is not visible
\n
"
,
child
);
ok
(
GetFocus
()
==
child
,
"Focus no longer on child %p
\n
"
,
child
);
ShowWindow
(
child
,
SW_HIDE
);
ok
(
!
(
GetWindowLong
(
child
,
GWL_STYLE
)
&
WS_VISIBLE
),
"Child %p is visible
\n
"
,
child
);
ok
(
GetFocus
()
==
hwnd
,
"Focus should be on parent %p, not %p
\n
"
,
hwnd
,
GetFocus
()
);
ShowWindow
(
child
,
SW_SHOW
);
SetFocus
(
child
);
ok
(
GetFocus
()
==
child
,
"Focus should be on child %p
\n
"
,
child
);
SetWindowPos
(
child
,
0
,
0
,
0
,
0
,
0
,
SWP_NOZORDER
|
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_HIDEWINDOW
);
ok
(
GetFocus
()
==
child
,
"Focus should still be on child %p
\n
"
,
child
);
DestroyWindow
(
child
);
DestroyWindow
(
child
);
}
}
...
...
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