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
6bbea5d0
Commit
6bbea5d0
authored
Sep 11, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tooltips: Set current tool before sending TTN_NEEDTEXT.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5312cc6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
tooltips.c
dlls/comctl32/tooltips.c
+8
-4
No files found.
dlls/comctl32/tooltips.c
View file @
6bbea5d0
...
...
@@ -588,7 +588,7 @@ TOOLTIPS_Show (TOOLTIPS_INFO *infoPtr, BOOL track_activate)
NMHDR
hdr
;
int
ptfx
=
0
;
DWORD
style
=
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
);
INT
nTool
;
INT
nTool
,
current
;
if
(
track_activate
)
{
...
...
@@ -611,16 +611,20 @@ TOOLTIPS_Show (TOOLTIPS_INFO *infoPtr, BOOL track_activate)
TRACE
(
"Show tooltip pre %d! (%p)
\n
"
,
nTool
,
infoPtr
->
hwndSelf
);
current
=
infoPtr
->
nCurrentTool
;
if
(
!
track_activate
)
infoPtr
->
nCurrentTool
=
infoPtr
->
nTool
;
TOOLTIPS_GetTipText
(
infoPtr
,
nTool
,
infoPtr
->
szTipText
);
if
(
infoPtr
->
szTipText
[
0
]
==
'\0'
)
{
infoPtr
->
nCurrentTool
=
current
;
return
;
}
toolPtr
=
&
infoPtr
->
tools
[
nTool
];
if
(
!
track_activate
)
infoPtr
->
nCurrentTool
=
infoPtr
->
nTool
;
TRACE
(
"Show tooltip %d!
\n
"
,
nTool
);
hdr
.
hwndFrom
=
infoPtr
->
hwndSelf
;
...
...
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