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
121f9c7e
Commit
121f9c7e
authored
Aug 04, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Don't bother checking the WS_VISIBLE style on the desktop window.
parent
0c0ab500
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
win.c
dlls/user/win.c
+15
-10
No files found.
dlls/user/win.c
View file @
121f9c7e
...
...
@@ -249,7 +249,6 @@ static HWND *list_window_children( HWND hwnd, ATOM atom, DWORD tid )
*
* Build an array of all parents of a given window, starting with
* the immediate parent. The array must be freed with HeapFree.
* Returns NULL if window is a top-level window.
*/
static
HWND
*
list_window_parents
(
HWND
hwnd
)
{
...
...
@@ -2611,14 +2610,17 @@ BOOL WINAPI IsChild( HWND parent, HWND child )
BOOL
WINAPI
IsWindowVisible
(
HWND
hwnd
)
{
HWND
*
list
;
BOOL
retval
;
BOOL
retval
=
TRUE
;
int
i
;
if
(
!
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_VISIBLE
))
return
FALSE
;
if
(
!
(
list
=
list_window_parents
(
hwnd
)))
return
TRUE
;
for
(
i
=
0
;
list
[
i
];
i
++
)
if
(
!
(
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
WS_VISIBLE
))
break
;
retval
=
!
list
[
i
];
if
(
list
[
0
]
&&
list
[
1
])
/* desktop window is considered always visible so we don't check it */
{
for
(
i
=
0
;
list
[
i
+
1
];
i
++
)
if
(
!
(
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
WS_VISIBLE
))
break
;
retval
=
!
list
[
i
+
1
];
}
HeapFree
(
GetProcessHeap
(),
0
,
list
);
return
retval
;
}
...
...
@@ -2634,7 +2636,7 @@ BOOL WINAPI IsWindowVisible( HWND hwnd )
BOOL
WIN_IsWindowDrawable
(
HWND
hwnd
,
BOOL
icon
)
{
HWND
*
list
;
BOOL
retval
;
BOOL
retval
=
TRUE
;
int
i
;
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
...
...
@@ -2642,10 +2644,13 @@ BOOL WIN_IsWindowDrawable( HWND hwnd, BOOL icon )
if
((
style
&
WS_MINIMIZE
)
&&
icon
&&
GetClassLongPtrW
(
hwnd
,
GCLP_HICON
))
return
FALSE
;
if
(
!
(
list
=
list_window_parents
(
hwnd
)))
return
TRUE
;
for
(
i
=
0
;
list
[
i
];
i
++
)
if
((
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
(
WS_VISIBLE
|
WS_MINIMIZE
))
!=
WS_VISIBLE
)
break
;
retval
=
!
list
[
i
];
if
(
list
[
0
]
&&
list
[
1
])
/* desktop window is considered always visible so we don't check it */
{
for
(
i
=
0
;
list
[
i
+
1
];
i
++
)
if
((
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
(
WS_VISIBLE
|
WS_MINIMIZE
))
!=
WS_VISIBLE
)
break
;
retval
=
!
list
[
i
+
1
];
}
HeapFree
(
GetProcessHeap
(),
0
,
list
);
return
retval
;
}
...
...
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