Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8974541d
Commit
8974541d
authored
Sep 09, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Status update.
- Remove no longer valid comment. - Minor coding style cleanups.
parent
38d6f143
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
16 deletions
+31
-16
tooltips.c
dlls/comctl32/tooltips.c
+31
-16
No files found.
dlls/comctl32/tooltips.c
View file @
8974541d
...
@@ -18,10 +18,26 @@
...
@@ -18,10 +18,26 @@
* License along with this library; if not, write to the Free Software
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* This code was audited for completeness against the documented features
* of Comctl32.dll version 6.0 on Sep. 08, 2004, by Robert Shearman.
*
* Unless otherwise noted, we believe this code to be complete, as per
* the specification mentioned above.
* If you discover missing features or bugs please note them below.
*
* TODO:
* TODO:
* - Custom draw support.
* - Custom draw support.
* - Balloon tips.
* - Animation.
* - Messages.
* - Links.
* - Messages:
* o TTM_ADJUSTRECT
* o TTM_GETTITLEA
* o TTM_GETTTILEW
* o TTM_POPUP
* - Styles:
* o TTS_NOANIMATE
* o TTS_NOFADE
* o TTS_CLOSE
*
*
* Testing:
* Testing:
* - Run tests using Waite Group Windows95 API Bible Volume 2.
* - Run tests using Waite Group Windows95 API Bible Volume 2.
...
@@ -152,11 +168,12 @@ typedef struct
...
@@ -152,11 +168,12 @@ typedef struct
#define ICON_HEIGHT 16
#define ICON_HEIGHT 16
#define ICON_WIDTH 16
#define ICON_WIDTH 16
LRESULT
CALLBACK
static
LRESULT
CALLBACK
TOOLTIPS_SubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
uId
,
DWORD_PTR
dwRef
);
TOOLTIPS_SubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
uId
,
DWORD_PTR
dwRef
);
static
inline
UINT_PTR
TOOLTIPS_GetTitleIconIndex
(
HICON
hIcon
)
inline
static
UINT_PTR
TOOLTIPS_GetTitleIconIndex
(
HICON
hIcon
)
{
{
UINT
i
;
UINT
i
;
for
(
i
=
0
;
i
<=
TTI_ERROR
;
i
++
)
for
(
i
=
0
;
i
<=
TTI_ERROR
;
i
++
)
...
@@ -183,7 +200,7 @@ TOOLTIPS_InitSystemSettings (TOOLTIPS_INFO *infoPtr)
...
@@ -183,7 +200,7 @@ TOOLTIPS_InitSystemSettings (TOOLTIPS_INFO *infoPtr)
infoPtr
->
hTitleFont
=
CreateFontIndirectW
(
&
nclm
.
lfStatusFont
);
infoPtr
->
hTitleFont
=
CreateFontIndirectW
(
&
nclm
.
lfStatusFont
);
}
}
static
VOID
static
void
TOOLTIPS_Refresh
(
HWND
hwnd
,
HDC
hdc
)
TOOLTIPS_Refresh
(
HWND
hwnd
,
HDC
hdc
)
{
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
...
@@ -203,8 +220,6 @@ TOOLTIPS_Refresh (HWND hwnd, HDC hdc)
...
@@ -203,8 +220,6 @@ TOOLTIPS_Refresh (HWND hwnd, HDC hdc)
hBrush
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
hBrush
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
/* already drawn the background; don't need to draw it again
* when drawing text */
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
SetTextColor
(
hdc
,
infoPtr
->
clrText
);
SetTextColor
(
hdc
,
infoPtr
->
clrText
);
...
@@ -384,7 +399,7 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
...
@@ -384,7 +399,7 @@ static void TOOLTIPS_GetDispInfoW(HWND hwnd, TOOLTIPS_INFO *infoPtr, TTTOOL_INFO
}
}
}
}
static
VOID
static
void
TOOLTIPS_GetTipText
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
INT
nTool
)
TOOLTIPS_GetTipText
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
INT
nTool
)
{
{
TTTOOL_INFO
*
toolPtr
=
&
infoPtr
->
tools
[
nTool
];
TTTOOL_INFO
*
toolPtr
=
&
infoPtr
->
tools
[
nTool
];
...
@@ -417,7 +432,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
...
@@ -417,7 +432,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
}
}
static
VOID
static
void
TOOLTIPS_CalcTipSize
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
LPSIZE
lpSize
)
TOOLTIPS_CalcTipSize
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
LPSIZE
lpSize
)
{
{
HDC
hdc
;
HDC
hdc
;
...
@@ -475,7 +490,7 @@ TOOLTIPS_CalcTipSize (HWND hwnd, TOOLTIPS_INFO *infoPtr, LPSIZE lpSize)
...
@@ -475,7 +490,7 @@ TOOLTIPS_CalcTipSize (HWND hwnd, TOOLTIPS_INFO *infoPtr, LPSIZE lpSize)
}
}
static
VOID
static
void
TOOLTIPS_Show
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
TOOLTIPS_Show
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
{
{
TTTOOL_INFO
*
toolPtr
;
TTTOOL_INFO
*
toolPtr
;
...
@@ -666,7 +681,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -666,7 +681,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
}
}
static
VOID
static
void
TOOLTIPS_Hide
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
TOOLTIPS_Hide
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
{
{
TTTOOL_INFO
*
toolPtr
;
TTTOOL_INFO
*
toolPtr
;
...
@@ -693,7 +708,7 @@ TOOLTIPS_Hide (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -693,7 +708,7 @@ TOOLTIPS_Hide (HWND hwnd, TOOLTIPS_INFO *infoPtr)
}
}
static
VOID
static
void
TOOLTIPS_TrackShow
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
TOOLTIPS_TrackShow
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
{
{
TTTOOL_INFO
*
toolPtr
;
TTTOOL_INFO
*
toolPtr
;
...
@@ -791,7 +806,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -791,7 +806,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
}
}
static
VOID
static
void
TOOLTIPS_TrackHide
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
TOOLTIPS_TrackHide
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
)
{
{
TTTOOL_INFO
*
toolPtr
;
TTTOOL_INFO
*
toolPtr
;
...
@@ -1139,7 +1154,8 @@ TOOLTIPS_AddToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1139,7 +1154,8 @@ TOOLTIPS_AddToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
static
void
TOOLTIPS_DelToolCommon
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
INT
nTool
)
static
void
TOOLTIPS_DelToolCommon
(
HWND
hwnd
,
TOOLTIPS_INFO
*
infoPtr
,
INT
nTool
)
{
{
TTTOOL_INFO
*
toolPtr
;
TTTOOL_INFO
*
toolPtr
;
...
@@ -2549,7 +2565,7 @@ TOOLTIPS_WinIniChange (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -2549,7 +2565,7 @@ TOOLTIPS_WinIniChange (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
LRESULT
CALLBACK
static
LRESULT
CALLBACK
TOOLTIPS_SubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
uID
,
DWORD_PTR
dwRef
)
TOOLTIPS_SubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
uID
,
DWORD_PTR
dwRef
)
{
{
MSG
msg
;
MSG
msg
;
...
@@ -2727,7 +2743,6 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -2727,7 +2743,6 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_GETTEXTLENGTH
:
case
WM_GETTEXTLENGTH
:
return
TOOLTIPS_OnWMGetTextLength
(
hwnd
,
wParam
,
lParam
);
return
TOOLTIPS_OnWMGetTextLength
(
hwnd
,
wParam
,
lParam
);
case
WM_LBUTTONDOWN
:
case
WM_LBUTTONDOWN
:
case
WM_LBUTTONUP
:
case
WM_LBUTTONUP
:
case
WM_MBUTTONDOWN
:
case
WM_MBUTTONDOWN
:
...
...
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