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
67607f9e
Commit
67607f9e
authored
Mar 23, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete unicodification of the tooltips common control.
parent
e912c6a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
tooltips.c
dlls/comctl32/tooltips.c
+12
-10
No files found.
dlls/comctl32/tooltips.c
View file @
67607f9e
...
...
@@ -18,6 +18,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* NOTES
*
* This code was audited for completeness against the documented features
* of Comctl32.dll version 6.0 on Sep. 08, 2004, by Robert Shearman.
*
...
...
@@ -214,7 +216,7 @@ TOOLTIPS_Refresh (HWND hwnd, HDC hdc)
if
(
infoPtr
->
nMaxTipWidth
>
-
1
)
uFlags
|=
DT_WORDBREAK
;
if
(
GetWindowLong
A
(
hwnd
,
GWL_STYLE
)
&
TTS_NOPREFIX
)
if
(
GetWindowLong
W
(
hwnd
,
GWL_STYLE
)
&
TTS_NOPREFIX
)
uFlags
|=
DT_NOPREFIX
;
GetClientRect
(
hwnd
,
&
rc
);
...
...
@@ -610,8 +612,8 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
rect
.
top
=
rect
.
bottom
-
size
.
cy
;
}
AdjustWindowRectEx
(
&
rect
,
GetWindowLong
A
(
hwnd
,
GWL_STYLE
),
FALSE
,
GetWindowLong
A
(
hwnd
,
GWL_EXSTYLE
));
AdjustWindowRectEx
(
&
rect
,
GetWindowLong
W
(
hwnd
,
GWL_STYLE
),
FALSE
,
GetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
));
if
(
style
&
TTS_BALLOON
)
{
...
...
@@ -782,8 +784,8 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
rect
.
right
=
rect
.
left
+
size
.
cx
;
rect
.
bottom
=
rect
.
top
+
size
.
cy
;
AdjustWindowRectEx
(
&
rect
,
GetWindowLong
A
(
hwnd
,
GWL_STYLE
),
FALSE
,
GetWindowLong
A
(
hwnd
,
GWL_EXSTYLE
));
AdjustWindowRectEx
(
&
rect
,
GetWindowLong
W
(
hwnd
,
GWL_STYLE
),
FALSE
,
GetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
));
if
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
TTS_BALLOON
)
{
...
...
@@ -945,7 +947,7 @@ TOOLTIPS_CheckTool (HWND hwnd, BOOL bShowTest)
if
(
nTool
==
-
1
)
return
-
1
;
if
(
!
(
GetWindowLong
A
(
hwnd
,
GWL_STYLE
)
&
TTS_ALWAYSTIP
)
&&
bShowTest
)
{
if
(
!
(
GetWindowLong
W
(
hwnd
,
GWL_STYLE
)
&
TTS_ALWAYSTIP
)
&&
bShowTest
)
{
if
(
!
TOOLTIPS_IsWindowActive
(
GetWindow
(
hwnd
,
GW_OWNER
)))
return
-
1
;
}
...
...
@@ -2395,8 +2397,8 @@ TOOLTIPS_MouseMessage (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_NCCreate
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
DWORD
dwStyle
=
GetWindowLong
A
(
hwnd
,
GWL_STYLE
);
DWORD
dwExStyle
=
GetWindowLong
A
(
hwnd
,
GWL_EXSTYLE
);
DWORD
dwStyle
=
GetWindowLong
W
(
hwnd
,
GWL_STYLE
);
DWORD
dwExStyle
=
GetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
);
dwStyle
&=
0x0000FFFF
;
dwStyle
|=
(
WS_POPUP
|
WS_BORDER
|
WS_CLIPSIBLINGS
);
...
...
@@ -2405,10 +2407,10 @@ TOOLTIPS_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam)
* window region, therefore it is useless to us in balloon mode */
if
(
dwStyle
&
TTS_BALLOON
)
dwStyle
&=
~
WS_BORDER
;
SetWindowLong
A
(
hwnd
,
GWL_STYLE
,
dwStyle
);
SetWindowLong
W
(
hwnd
,
GWL_STYLE
,
dwStyle
);
dwExStyle
|=
WS_EX_TOOLWINDOW
;
SetWindowLong
A
(
hwnd
,
GWL_EXSTYLE
,
dwExStyle
);
SetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
,
dwExStyle
);
return
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