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
ff826eb1
Commit
ff826eb1
authored
Aug 13, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix missing tooltips.
parent
03ffb734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
tooltips.c
dlls/comctl32/tooltips.c
+35
-4
No files found.
dlls/comctl32/tooltips.c
View file @
ff826eb1
...
...
@@ -314,7 +314,7 @@ static void TOOLTIPS_GetDispInfoA(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
ZeroMemory
(
&
ttnmdi
,
sizeof
(
NMTTDISPINFOA
));
ttnmdi
.
hdr
.
hwndFrom
=
hwnd
;
ttnmdi
.
hdr
.
idFrom
=
toolPtr
->
uId
;
ttnmdi
.
hdr
.
code
=
TTN_GETDISPINFOA
;
ttnmdi
.
hdr
.
code
=
TTN_GETDISPINFOA
;
/* == TTN_NEEDTEXTA */
ttnmdi
.
lpszText
=
(
LPSTR
)
&
ttnmdi
.
szText
;
ttnmdi
.
uFlags
=
toolPtr
->
uFlags
;
ttnmdi
.
lParam
=
toolPtr
->
lParam
;
...
...
@@ -332,7 +332,6 @@ static void TOOLTIPS_GetDispInfoA(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
}
}
else
if
(
ttnmdi
.
lpszText
==
0
)
{
/* no text available */
infoPtr
->
szTipText
[
0
]
=
'\0'
;
}
else
if
(
ttnmdi
.
lpszText
!=
LPSTR_TEXTCALLBACKA
)
{
...
...
@@ -347,6 +346,22 @@ static void TOOLTIPS_GetDispInfoA(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
ERR
(
"recursive text callback!
\n
"
);
infoPtr
->
szTipText
[
0
]
=
'\0'
;
}
/* no text available - try calling parent instead as per native */
/* FIXME: Unsure if SETITEM should save the value or not */
if
(
infoPtr
->
szTipText
[
0
]
==
0x00
)
{
SendMessageW
(
GetParent
(
toolPtr
->
hwnd
),
WM_NOTIFY
,
(
WPARAM
)
toolPtr
->
uId
,
(
LPARAM
)
&
ttnmdi
);
if
(
IS_INTRESOURCE
(
ttnmdi
.
lpszText
))
{
LoadStringW
(
ttnmdi
.
hinst
,
LOWORD
(
ttnmdi
.
lpszText
),
infoPtr
->
szTipText
,
INFOTIPSIZE
);
}
else
if
(
ttnmdi
.
lpszText
&&
ttnmdi
.
lpszText
!=
LPSTR_TEXTCALLBACKA
)
{
Str_GetPtrAtoW
(
ttnmdi
.
lpszText
,
infoPtr
->
szTipText
,
INFOTIPSIZE
);
}
}
}
static
void
TOOLTIPS_GetDispInfoW
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
TTTOOL_INFO
*
toolPtr
)
...
...
@@ -357,7 +372,7 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
ZeroMemory
(
&
ttnmdi
,
sizeof
(
NMTTDISPINFOW
));
ttnmdi
.
hdr
.
hwndFrom
=
hwnd
;
ttnmdi
.
hdr
.
idFrom
=
toolPtr
->
uId
;
ttnmdi
.
hdr
.
code
=
TTN_GETDISPINFOW
;
ttnmdi
.
hdr
.
code
=
TTN_GETDISPINFOW
;
/* == TTN_NEEDTEXTW */
ttnmdi
.
lpszText
=
(
LPWSTR
)
&
ttnmdi
.
szText
;
ttnmdi
.
uFlags
=
toolPtr
->
uFlags
;
ttnmdi
.
lParam
=
toolPtr
->
lParam
;
...
...
@@ -375,7 +390,6 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
}
}
else
if
(
ttnmdi
.
lpszText
==
0
)
{
/* no text available */
infoPtr
->
szTipText
[
0
]
=
'\0'
;
}
else
if
(
ttnmdi
.
lpszText
!=
LPSTR_TEXTCALLBACKW
)
{
...
...
@@ -390,6 +404,23 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
ERR
(
"recursive text callback!
\n
"
);
infoPtr
->
szTipText
[
0
]
=
'\0'
;
}
/* no text available - try calling parent instead as per native */
/* FIXME: Unsure if SETITEM should save the value or not */
if
(
infoPtr
->
szTipText
[
0
]
==
0x00
)
{
SendMessageW
(
GetParent
(
toolPtr
->
hwnd
),
WM_NOTIFY
,
(
WPARAM
)
toolPtr
->
uId
,
(
LPARAM
)
&
ttnmdi
);
if
(
IS_INTRESOURCE
(
ttnmdi
.
lpszText
))
{
LoadStringW
(
ttnmdi
.
hinst
,
LOWORD
(
ttnmdi
.
lpszText
),
infoPtr
->
szTipText
,
INFOTIPSIZE
);
}
else
if
(
ttnmdi
.
lpszText
&&
ttnmdi
.
lpszText
!=
LPSTR_TEXTCALLBACKW
)
{
Str_GetPtrW
(
ttnmdi
.
lpszText
,
infoPtr
->
szTipText
,
INFOTIPSIZE
);
}
}
}
static
void
...
...
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