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
b00c0124
Commit
b00c0124
authored
Aug 07, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Aug 07, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WINPOS_WindowFromPoint should respect hrgnWnd.
parent
b9f350b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
winpos.c
windows/winpos.c
+11
-6
No files found.
windows/winpos.c
View file @
b00c0124
...
...
@@ -438,6 +438,7 @@ INT16 WINPOS_WindowFromPoint( WND* wndScope, POINT16 pt, WND **ppWnd )
INT16
retvalue
;
POINT16
xy
=
pt
;
TRACE
(
"scope %04x %d,%d
\n
"
,
wndScope
->
hwndSelf
,
pt
.
x
,
pt
.
y
);
*
ppWnd
=
NULL
;
wndPtr
=
WIN_LockWndPtr
(
wndScope
->
child
);
...
...
@@ -466,14 +467,18 @@ INT16 WINPOS_WindowFromPoint( WND* wndScope, POINT16 pt, WND **ppWnd )
/* is enabled (or it's a top-level window), then explore */
/* its children. Otherwise, go to the next window. */
if
((
wndPtr
->
dwStyle
&
WS_VISIBLE
)
&&
if
((
wndPtr
->
dwStyle
&
WS_VISIBLE
)
&&
(
!
(
wndPtr
->
dwStyle
&
WS_DISABLED
)
||
((
wndPtr
->
dwStyle
&
(
WS_POPUP
|
WS_CHILD
))
!=
WS_CHILD
))
&&
(
xy
.
x
>=
wndPtr
->
rectWindow
.
left
)
&&
(
xy
.
x
<
wndPtr
->
rectWindow
.
right
)
&&
(
xy
.
y
>=
wndPtr
->
rectWindow
.
top
)
&&
(
xy
.
y
<
wndPtr
->
rectWindow
.
bottom
))
(
wndPtr
->
hrgnWnd
?
PtInRegion
(
wndPtr
->
hrgnWnd
,
xy
.
x
-
wndPtr
->
rectWindow
.
left
,
xy
.
y
-
wndPtr
->
rectWindow
.
top
)
:
((
xy
.
x
>=
wndPtr
->
rectWindow
.
left
)
&&
(
xy
.
x
<
wndPtr
->
rectWindow
.
right
)
&&
(
xy
.
y
>=
wndPtr
->
rectWindow
.
top
)
&&
(
xy
.
y
<
wndPtr
->
rectWindow
.
bottom
))))
{
TRACE
(
"%d,%d is inside %04x
\n
"
,
xy
.
x
,
xy
.
y
,
wndPtr
->
hwndSelf
);
*
ppWnd
=
wndPtr
;
/* Got a suitable window */
/* If window is minimized or disabled, return at once */
...
...
@@ -517,7 +522,7 @@ hittest:
{
retvalue
=
hittest
;
/* Found the window */
goto
end
;
}
}
}
else
{
...
...
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