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
71f99baf
Commit
71f99baf
authored
Sep 09, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Sep 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the TTM_GETBUBBLESIZE message.
parent
3a706f0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
tooltips.c
dlls/comctl32/tooltips.c
+26
-0
No files found.
dlls/comctl32/tooltips.c
View file @
71f99baf
...
...
@@ -1137,6 +1137,29 @@ TOOLTIPS_EnumToolsW (HWND hwnd, WPARAM wParam, LPARAM lParam)
return
TRUE
;
}
static
LRESULT
TOOLTIPS_GetBubbleSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOW
lpToolInfo
=
(
LPTTTOOLINFOW
)
lParam
;
INT
nTool
;
SIZE
size
;
if
(
lpToolInfo
==
NULL
)
return
FALSE
;
if
(
lpToolInfo
->
cbSize
<
TTTOOLINFO_V1_SIZEW
)
return
FALSE
;
nTool
=
TOOLTIPS_GetToolFromInfoW
(
infoPtr
,
lpToolInfo
);
if
(
nTool
==
-
1
)
return
0
;
TRACE
(
"tool %d
\n
"
,
nTool
);
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TRACE
(
"size %ld x %ld
\n
"
,
size
.
cx
,
size
.
cy
);
return
MAKELRESULT
(
size
.
cx
,
size
.
cy
);
}
static
LRESULT
TOOLTIPS_GetCurrentToolA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -2365,6 +2388,9 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
TTM_ENUMTOOLSW
:
return
TOOLTIPS_EnumToolsW
(
hwnd
,
wParam
,
lParam
);
case
TTM_GETBUBBLESIZE
:
return
TOOLTIPS_GetBubbleSize
(
hwnd
,
wParam
,
lParam
);
case
TTM_GETCURRENTTOOLA
:
return
TOOLTIPS_GetCurrentToolA
(
hwnd
,
wParam
,
lParam
);
...
...
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