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
e516ce84
Commit
e516ce84
authored
Aug 19, 2004
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Aug 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear tooltip when text is set to NULL.
Repaint tooltip when item info changes.
parent
12d61c1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
tooltips.c
dlls/comctl32/tooltips.c
+16
-2
No files found.
dlls/comctl32/tooltips.c
View file @
e516ce84
...
...
@@ -323,7 +323,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
{
TTTOOL_INFO
*
toolPtr
=
&
infoPtr
->
tools
[
nTool
];
if
(
HIWORD
((
UINT
)
toolPtr
->
lpszText
)
==
0
)
{
if
(
HIWORD
((
UINT
)
toolPtr
->
lpszText
)
==
0
&&
toolPtr
->
hinst
)
{
/* load a resource */
TRACE
(
"load res string %p %x
\n
"
,
toolPtr
->
hinst
,
(
int
)
toolPtr
->
lpszText
);
...
...
@@ -1720,6 +1720,10 @@ TOOLTIPS_RelayEvent (HWND hwnd, WPARAM wParam, LPARAM lParam)
KillTimer
(
hwnd
,
ID_TIMERPOP
);
SetTimer
(
hwnd
,
ID_TIMERPOP
,
infoPtr
->
nAutoPopTime
,
0
);
TRACE
(
"timer 2 restarted
\n
"
);
}
else
if
(
infoPtr
->
nTool
!=
-
1
&&
infoPtr
->
bActive
)
{
/* previous show attempt didn't result in tooltip so try again */
SetTimer
(
hwnd
,
ID_TIMERSHOW
,
infoPtr
->
nInitialTime
,
0
);
TRACE
(
"timer 1 started!
\n
"
);
}
break
;
}
...
...
@@ -1907,7 +1911,7 @@ TOOLTIPS_SetToolInfoW (HWND hwnd, WPARAM wParam, LPARAM lParam)
TRACE
(
"set string id %x!
\n
"
,
(
INT
)
lpToolInfo
->
lpszText
);
toolPtr
->
lpszText
=
lpToolInfo
->
lpszText
;
}
else
if
(
lpToolInfo
->
lpszText
)
{
else
{
if
(
lpToolInfo
->
lpszText
==
LPSTR_TEXTCALLBACKW
)
toolPtr
->
lpszText
=
LPSTR_TEXTCALLBACKW
;
else
{
...
...
@@ -1927,6 +1931,16 @@ TOOLTIPS_SetToolInfoW (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
lpToolInfo
->
cbSize
>=
sizeof
(
TTTOOLINFOW
))
toolPtr
->
lParam
=
lpToolInfo
->
lParam
;
if
(
infoPtr
->
nCurrentTool
==
nTool
)
{
TOOLTIPS_GetTipText
(
hwnd
,
infoPtr
,
infoPtr
->
nCurrentTool
);
if
(
infoPtr
->
szTipText
[
0
]
==
0
)
TOOLTIPS_Hide
(
hwnd
,
infoPtr
);
else
TOOLTIPS_Show
(
hwnd
,
infoPtr
);
}
return
0
;
}
...
...
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