1. I need to increase the default Tooltip font size. Is this possible?
2. Also I would like to specify one of the icons to appear in the tooltip
using :
" ToolTip Icons (Set with TTM_SETTITLE)"
Only problem is - how do I use TTM_SETTITLE to do this?
I have tried : SendMessage(m_hwndTT, TTM_SETTITLE + TTI_WARNING, IcType,
ByVal sText)
but this does nothing.....
Thanks
Guy
Stephen Lebans - 22 Aug 2007 11:27 GMT
This functionality is exposed via the SetToolTipTitle method.
To set one of the predefined Icons:
'// ToolTip Icons (Set with TTM_SETTITLE)
Private Const TTI_NONE = 0
Private Const TTI_INFO = 1
Private Const TTI_WARNING = 2
Private Const TTI_ERROR = 3
TTip.SetToolTipTitle "Icon Test", 3
I think you need to reset the Icon back to none before the class is
destroyed in the Form's Unload event. With WinXP and higher, you can also
pass a handle to an Icon ( hIcon) instead of one of the constants.
To change the font you need to use the WM_SetFont message with hFont
returned via CreateFontIndirect(or similiar) API call. There are several
projects on my site that show you how to create a Font that can be used with
the WM_SetFont message. See the TabColors or RotateText samples.

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> 1. I need to increase the default Tooltip font size. Is this possible?
>
[quoted text clipped - 11 lines]
>
> Guy