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
91df8fd5
Commit
91df8fd5
authored
Feb 14, 2009
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Feb 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Simplify fifteen tooltips function invocations.
parent
0e21db9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
tooltips.c
dlls/comctl32/tooltips.c
+30
-30
No files found.
dlls/comctl32/tooltips.c
View file @
91df8fd5
...
...
@@ -1006,7 +1006,7 @@ TOOLTIPS_CheckTool (HWND hwnd, BOOL bShowTest)
static
LRESULT
TOOLTIPS_Activate
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_Activate
(
HWND
hwnd
,
WPARAM
wParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
...
...
@@ -1023,7 +1023,7 @@ TOOLTIPS_Activate (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_AddToolA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_AddToolA
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOA
lpToolInfo
=
(
LPTTTOOLINFOA
)
lParam
;
...
...
@@ -1114,7 +1114,7 @@ TOOLTIPS_AddToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_AddToolW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_AddToolW
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOW
lpToolInfo
=
(
LPTTTOOLINFOW
)
lParam
;
...
...
@@ -1280,7 +1280,7 @@ TOOLTIPS_DelToolCommon (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
}
static
LRESULT
TOOLTIPS_DelToolA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_DelToolA
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOA
lpToolInfo
=
(
LPTTTOOLINFOA
)
lParam
;
...
...
@@ -1302,7 +1302,7 @@ TOOLTIPS_DelToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_DelToolW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_DelToolW
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOW
lpToolInfo
=
(
LPTTTOOLINFOW
)
lParam
;
...
...
@@ -1451,7 +1451,7 @@ TOOLTIPS_GetCurrentToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_GetCurrentToolW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_GetCurrentToolW
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOW
lpToolInfo
=
(
LPTTTOOLINFOW
)
lParam
;
...
...
@@ -1485,7 +1485,7 @@ TOOLTIPS_GetCurrentToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_GetDelayTime
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_GetDelayTime
(
HWND
hwnd
,
WPARAM
wParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
...
...
@@ -1510,7 +1510,7 @@ TOOLTIPS_GetDelayTime (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_GetMargin
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_GetMargin
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPRECT
lpRect
=
(
LPRECT
)
lParam
;
...
...
@@ -1600,7 +1600,7 @@ TOOLTIPS_GetTipTextColor (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
inline
LRESULT
TOOLTIPS_GetToolCount
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_GetToolCount
(
HWND
hwnd
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
return
infoPtr
->
uNumTools
;
...
...
@@ -1608,7 +1608,7 @@ TOOLTIPS_GetToolCount (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_GetToolInfoA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_GetToolInfoA
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOA
lpToolInfo
=
(
LPTTTOOLINFOA
)
lParam
;
...
...
@@ -1717,7 +1717,7 @@ TOOLTIPS_HitTestA (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_HitTestW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_HitTestW
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTHITTESTINFOW
lptthit
=
(
LPTTHITTESTINFOW
)
lParam
;
...
...
@@ -1800,7 +1800,7 @@ TOOLTIPS_NewToolRectW (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
inline
LRESULT
TOOLTIPS_Pop
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_Pop
(
HWND
hwnd
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
TOOLTIPS_Hide
(
hwnd
,
infoPtr
);
...
...
@@ -1918,7 +1918,7 @@ TOOLTIPS_SetDelayTime (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_SetMargin
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_SetMargin
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPRECT
lpRect
=
(
LPRECT
)
lParam
;
...
...
@@ -1956,7 +1956,7 @@ TOOLTIPS_SetTipBkColor (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
inline
LRESULT
TOOLTIPS_SetTipTextColor
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_SetTipTextColor
(
HWND
hwnd
,
WPARAM
wParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
...
...
@@ -2035,7 +2035,7 @@ TOOLTIPS_SetTitleW (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLTIPS_SetToolInfoA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLTIPS_SetToolInfoA
(
HWND
hwnd
,
LPARAM
lParam
)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
LPTTTOOLINFOA
lpToolInfo
=
(
LPTTTOOLINFOA
)
lParam
;
...
...
@@ -2672,19 +2672,19 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
switch
(
uMsg
)
{
case
TTM_ACTIVATE
:
return
TOOLTIPS_Activate
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_Activate
(
hwnd
,
wParam
);
case
TTM_ADDTOOLA
:
return
TOOLTIPS_AddToolA
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_AddToolA
(
hwnd
,
lParam
);
case
TTM_ADDTOOLW
:
return
TOOLTIPS_AddToolW
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_AddToolW
(
hwnd
,
lParam
);
case
TTM_DELTOOLA
:
return
TOOLTIPS_DelToolA
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_DelToolA
(
hwnd
,
lParam
);
case
TTM_DELTOOLW
:
return
TOOLTIPS_DelToolW
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_DelToolW
(
hwnd
,
lParam
);
case
TTM_ENUMTOOLSA
:
return
TOOLTIPS_EnumToolsA
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2699,13 +2699,13 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_GetCurrentToolA
(
hwnd
,
wParam
,
lParam
);
case
TTM_GETCURRENTTOOLW
:
return
TOOLTIPS_GetCurrentToolW
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_GetCurrentToolW
(
hwnd
,
lParam
);
case
TTM_GETDELAYTIME
:
return
TOOLTIPS_GetDelayTime
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_GetDelayTime
(
hwnd
,
wParam
);
case
TTM_GETMARGIN
:
return
TOOLTIPS_GetMargin
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_GetMargin
(
hwnd
,
lParam
);
case
TTM_GETMAXTIPWIDTH
:
return
TOOLTIPS_GetMaxTipWidth
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2723,10 +2723,10 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_GetTipTextColor
(
hwnd
,
wParam
,
lParam
);
case
TTM_GETTOOLCOUNT
:
return
TOOLTIPS_GetToolCount
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_GetToolCount
(
hwnd
);
case
TTM_GETTOOLINFOA
:
return
TOOLTIPS_GetToolInfoA
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_GetToolInfoA
(
hwnd
,
lParam
);
case
TTM_GETTOOLINFOW
:
return
TOOLTIPS_GetToolInfoW
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2735,7 +2735,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_HitTestA
(
hwnd
,
wParam
,
lParam
);
case
TTM_HITTESTW
:
return
TOOLTIPS_HitTestW
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_HitTestW
(
hwnd
,
lParam
);
case
TTM_NEWTOOLRECTA
:
return
TOOLTIPS_NewToolRectA
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2744,7 +2744,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_NewToolRectW
(
hwnd
,
wParam
,
lParam
);
case
TTM_POP
:
return
TOOLTIPS_Pop
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_Pop
(
hwnd
);
case
TTM_RELAYEVENT
:
return
TOOLTIPS_RelayEvent
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2753,7 +2753,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_SetDelayTime
(
hwnd
,
wParam
,
lParam
);
case
TTM_SETMARGIN
:
return
TOOLTIPS_SetMargin
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_SetMargin
(
hwnd
,
lParam
);
case
TTM_SETMAXTIPWIDTH
:
return
TOOLTIPS_SetMaxTipWidth
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2762,7 +2762,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_SetTipBkColor
(
hwnd
,
wParam
,
lParam
);
case
TTM_SETTIPTEXTCOLOR
:
return
TOOLTIPS_SetTipTextColor
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_SetTipTextColor
(
hwnd
,
wParam
);
case
TTM_SETTITLEA
:
return
TOOLTIPS_SetTitleA
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -2771,7 +2771,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_SetTitleW
(
hwnd
,
wParam
,
lParam
);
case
TTM_SETTOOLINFOA
:
return
TOOLTIPS_SetToolInfoA
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_SetToolInfoA
(
hwnd
,
lParam
);
case
TTM_SETTOOLINFOW
:
return
TOOLTIPS_SetToolInfoW
(
hwnd
,
wParam
,
lParam
);
...
...
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