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
2e72e102
Commit
2e72e102
authored
Aug 14, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix tooltips uninitialized variables plus wrong positioning.
parent
da68f394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
tooltips.c
dlls/comctl32/tooltips.c
+6
-3
No files found.
dlls/comctl32/tooltips.c
View file @
2e72e102
...
@@ -569,15 +569,18 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -569,15 +569,18 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
if
(
style
&
TTS_BALLOON
)
if
(
style
&
TTS_BALLOON
)
{
{
ptfx
=
rc
.
left
+
((
rc
.
right
-
rc
.
left
)
/
2
);
ptfx
=
rc
.
left
+
((
rc
.
right
-
rc
.
left
)
/
2
);
if
(
rect
.
top
-
size
.
cy
>=
0
)
/* CENTERTIP ballon tooltips default to below the field
if they fit on the screen */
if
(
rc
.
bottom
+
size
.
cy
>
GetSystemMetrics
(
SM_CYSCREEN
))
{
{
rect
.
top
-=
size
.
cy
;
rect
.
top
=
rc
.
top
-
size
.
cy
;
infoPtr
->
bToolBelow
=
FALSE
;
infoPtr
->
bToolBelow
=
FALSE
;
}
}
else
else
{
{
infoPtr
->
bToolBelow
=
TRUE
;
infoPtr
->
bToolBelow
=
TRUE
;
rect
.
top
+=
20
;
rect
.
top
=
rc
.
bottom
;
}
}
rect
.
left
=
max
(
0
,
rect
.
left
-
BALLOON_STEMINDENT
);
rect
.
left
=
max
(
0
,
rect
.
left
-
BALLOON_STEMINDENT
);
}
}
...
...
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