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
5312f624
Commit
5312f624
authored
Jun 22, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Position the balloons relative to the icon windows.
parent
a60050ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
systray.c
programs/explorer/systray.c
+8
-15
No files found.
programs/explorer/systray.c
View file @
5312f624
...
...
@@ -154,17 +154,6 @@ static struct icon *get_icon(HWND owner, UINT id)
return
NULL
;
}
static
RECT
get_icon_rect
(
struct
icon
*
icon
)
{
RECT
rect
;
rect
.
right
=
tray_width
-
icon_cx
*
icon
->
display
;
rect
.
left
=
rect
.
right
-
icon_cx
;
rect
.
top
=
(
tray_height
-
icon_cy
)
/
2
;
rect
.
bottom
=
rect
.
top
+
icon_cy
;
return
rect
;
}
static
void
init_common_controls
(
void
)
{
static
BOOL
initialized
=
FALSE
;
...
...
@@ -202,10 +191,10 @@ static void create_tooltip(struct icon *icon)
static
void
set_balloon_position
(
struct
icon
*
icon
)
{
RECT
rect
=
get_icon_rect
(
icon
)
;
RECT
rect
;
POINT
pos
;
MapWindowPoints
(
tray_window
,
0
,
(
POINT
*
)
&
rect
,
2
);
GetWindowRect
(
icon
->
window
,
&
rect
);
pos
.
x
=
(
rect
.
left
+
rect
.
right
)
/
2
;
pos
.
y
=
(
rect
.
top
+
rect
.
bottom
)
/
2
;
SendMessageW
(
balloon_window
,
TTM_TRACKPOSITION
,
0
,
MAKELONG
(
pos
.
x
,
pos
.
y
));
...
...
@@ -308,8 +297,12 @@ static void update_tooltip_text(struct icon *icon)
/* get the position of an icon in the stand-alone tray */
static
POINT
get_icon_pos
(
struct
icon
*
icon
)
{
RECT
rect
=
get_icon_rect
(
icon
);
return
*
(
POINT
*
)
&
rect
;
POINT
pos
;
pos
.
x
=
tray_width
-
icon_cx
*
(
icon
->
display
+
1
);
pos
.
y
=
(
tray_height
-
icon_cy
)
/
2
;
return
pos
;
}
/* synchronize tooltip position with tooltip window */
...
...
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