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
c0b189b3
Commit
c0b189b3
authored
Dec 21, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Dec 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
You can make an invisible window the active window.
parent
a3b97e05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
focus.c
dlls/user/focus.c
+1
-1
win.c
dlls/user/tests/win.c
+6
-0
No files found.
dlls/user/focus.c
View file @
c0b189b3
...
...
@@ -230,7 +230,7 @@ HWND WINAPI SetActiveWindow( HWND hwnd )
{
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
(
!
(
style
&
WS_VISIBLE
)
||
(
style
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
if
((
style
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
return
GetActiveWindow
();
/* Windows doesn't seem to return an error here */
hwnd
=
WIN_GetFullHandle
(
hwnd
);
...
...
dlls/user/tests/win.c
View file @
c0b189b3
...
...
@@ -1864,6 +1864,12 @@ static void test_SetActiveWindow(HWND hwnd)
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
0
,
0
,
SWP_NOZORDER
|
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_NOACTIVATE
|
SWP_SHOWWINDOW
);
ShowWindow
(
hwnd
,
SW_HIDE
);
ok
(
GetActiveWindow
()
!=
hwnd
,
"Window %p is still active
\n
"
,
hwnd
);
/* trace("**testing an invisible window now\n"); */
SetActiveWindow
(
hwnd
);
ok
(
GetActiveWindow
()
==
hwnd
,
"Window %p not active
\n
"
,
hwnd
);
ok
(
!
(
GetWindowLong
(
hwnd
,
GWL_STYLE
)
&
WS_VISIBLE
),
"Window %p is visible
\n
"
,
hwnd
);
ShowWindow
(
hwnd
,
SW_SHOW
);
hwnd2
=
CreateWindowExA
(
0
,
"static"
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
hwnd
,
0
,
0
,
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