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
4803b7ab
Commit
4803b7ab
authored
Feb 28, 2018
by
Roman Pišl
Committed by
Alexandre Julliard
Feb 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tooltips: Set window size before TTN_SHOW and preserve it after.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
037d315a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
tooltips.c
dlls/comctl32/tests/tooltips.c
+0
-1
tooltips.c
dlls/comctl32/tooltips.c
+13
-14
No files found.
dlls/comctl32/tests/tooltips.c
View file @
4803b7ab
...
...
@@ -304,7 +304,6 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
break
;
case
TTN_SHOW
:
GetWindowRect
(
hdr
->
hwndFrom
,
&
rect
);
todo_wine
ok
(
!
EqualRect
(
&
g_ttip_rect
,
&
rect
),
"Unexpected window rectangle.
\n
"
);
break
;
}
...
...
dlls/comctl32/tooltips.c
View file @
4803b7ab
...
...
@@ -624,18 +624,10 @@ TOOLTIPS_Show (TOOLTIPS_INFO *infoPtr, BOOL track_activate)
}
toolPtr
=
&
infoPtr
->
tools
[
nTool
];
TRACE
(
"Show tooltip %d
\n
"
,
nTool
);
hdr
.
hwndFrom
=
infoPtr
->
hwndSelf
;
hdr
.
idFrom
=
toolPtr
->
uId
;
hdr
.
code
=
TTN_SHOW
;
SendMessageW
(
toolPtr
->
hwnd
,
WM_NOTIFY
,
toolPtr
->
uId
,
(
LPARAM
)
&
hdr
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
infoPtr
->
szTipText
));
TOOLTIPS_CalcTipSize
(
infoPtr
,
&
size
);
TRACE
(
"size %d x %d
\n
"
,
size
.
cx
,
size
.
cy
);
TRACE
(
"Show tooltip %d, %s, size %d x %d
\n
"
,
nTool
,
debugstr_w
(
infoPtr
->
szTipText
),
size
.
cx
,
size
.
cy
);
if
(
track_activate
&&
(
toolPtr
->
uFlags
&
TTF_TRACK
))
{
...
...
@@ -824,9 +816,16 @@ TOOLTIPS_Show (TOOLTIPS_INFO *infoPtr, BOOL track_activate)
* it is no longer needed */
}
SetWindowPos
(
infoPtr
->
hwndSelf
,
HWND_TOPMOST
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
);
SetWindowPos
(
infoPtr
->
hwndSelf
,
NULL
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
hdr
.
hwndFrom
=
infoPtr
->
hwndSelf
;
hdr
.
idFrom
=
toolPtr
->
uId
;
hdr
.
code
=
TTN_SHOW
;
SendMessageW
(
toolPtr
->
hwnd
,
WM_NOTIFY
,
toolPtr
->
uId
,
(
LPARAM
)
&
hdr
);
SetWindowPos
(
infoPtr
->
hwndSelf
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
);
/* repaint the tooltip */
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
...
...
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