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
7b330516
Commit
7b330516
authored
Feb 05, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Test appropriate tool window for active state.
There is no point in testing owner of the tooltip itself since it's often created as a popup of the desktop window.
parent
48b9ab37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tooltips.c
dlls/comctl32/tooltips.c
+11
-3
No files found.
dlls/comctl32/tooltips.c
View file @
7b330516
...
@@ -991,9 +991,17 @@ TOOLTIPS_CheckTool (const TOOLTIPS_INFO *infoPtr, BOOL bShowTest)
...
@@ -991,9 +991,17 @@ TOOLTIPS_CheckTool (const TOOLTIPS_INFO *infoPtr, BOOL bShowTest)
if
(
nTool
==
-
1
)
if
(
nTool
==
-
1
)
return
-
1
;
return
-
1
;
if
(
!
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
TTS_ALWAYSTIP
)
&&
bShowTest
)
{
if
(
!
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
TTS_ALWAYSTIP
)
&&
bShowTest
)
if
(
!
TOOLTIPS_IsWindowActive
(
GetWindow
(
infoPtr
->
hwndSelf
,
GW_OWNER
)))
{
return
-
1
;
TTTOOL_INFO
*
ti
=
&
infoPtr
->
tools
[
nTool
];
HWND
hwnd
=
(
ti
->
uFlags
&
TTF_IDISHWND
)
?
(
HWND
)
ti
->
uId
:
ti
->
hwnd
;
if
(
!
TOOLTIPS_IsWindowActive
(
hwnd
))
{
TRACE
(
"not active: hwnd %p, parent %p, active %p
\n
"
,
hwnd
,
GetParent
(
hwnd
),
GetActiveWindow
());
return
-
1
;
}
}
}
TRACE
(
"tool %d
\n
"
,
nTool
);
TRACE
(
"tool %d
\n
"
,
nTool
);
...
...
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