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
0c1dea08
Commit
0c1dea08
authored
Oct 23, 1999
by
Joshua Thielen
Committed by
Alexandre Julliard
Oct 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tooltips positioning.
parent
8d29fa98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
tooltips.c
dlls/comctl32/tooltips.c
+21
-3
No files found.
dlls/comctl32/tooltips.c
View file @
0c1dea08
...
...
@@ -189,7 +189,7 @@ static VOID
TOOLTIPS_Show
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
{
TTTOOL_INFO
*
toolPtr
;
RECT
rect
;
RECT
rect
,
wndrect
;
SIZE
size
;
HDC
hdc
;
NMHDR
hdr
;
...
...
@@ -241,13 +241,31 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
rect
.
top
+=
20
;
}
/* FIXME: check position */
TRACE
(
"pos %d - %d
\n
"
,
rect
.
left
,
rect
.
top
);
rect
.
right
=
rect
.
left
+
size
.
cx
;
rect
.
bottom
=
rect
.
top
+
size
.
cy
;
/* check position */
wndrect
.
right
=
GetSystemMetrics
(
SM_CXSCREEN
);
if
(
rect
.
right
>
wndrect
.
right
)
{
rect
.
left
-=
rect
.
right
-
wndrect
.
right
+
2
;
rect
.
right
=
wndrect
.
right
-
2
;
}
wndrect
.
bottom
=
GetSystemMetrics
(
SM_CYSCREEN
);
if
(
rect
.
bottom
>
wndrect
.
bottom
)
{
RECT
rc
;
if
(
toolPtr
->
uFlags
&
TTF_IDISHWND
)
GetWindowRect
((
HWND
)
toolPtr
->
uId
,
&
rc
);
else
{
rc
=
toolPtr
->
rect
;
MapWindowPoints
(
toolPtr
->
hwnd
,
(
HWND
)
0
,
(
LPPOINT
)
&
rc
,
2
);
}
rect
.
bottom
=
rc
.
top
-
2
;
rect
.
top
=
rect
.
bottom
-
size
.
cy
;
}
AdjustWindowRectEx
(
&
rect
,
GetWindowLongA
(
hwnd
,
GWL_STYLE
),
FALSE
,
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
));
...
...
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