TOOLTIPTEXT (Structures)
Last changed: gwapo@models.com-202.175.250.114

.
Summary
In writing your tool tip notification handler, you need to use the TOOLTIPTEXT structure. The members of the TOOLTIPTEXT

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
struct TOOLTIPTEXT
{
   public NMHDR hdr;
   public IntPtr lpszText;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)]
   public string szText;
   public IntPtr hinst;
   public int uFlags;
}

// ANSI version of the structure.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
struct TOOLTIPTEXTA
{
   public NMHDR hdr;
   public IntPtr lpszText;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)]
   public string szText;
   public IntPtr hinst;
   public int uFlags;
}

VB Definition:

<StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)> _

Structure TOOLTIPTEXT
   Public hdr As NMHDR
   Public lpszText As IntPtr
   <MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)> _  
   Public szText As String
   Public hinst As IntPtr
   Public uFlags As Integer
End Structure

' ANSI version of the structure.

<StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)> _
Structure TOOLTIPTEXTA
   Public hdr As NMHDR
   Public lpszText As IntPtr
   <MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)> _
   Public szText As String
   Public hinst As IntPtr
   Public uFlags As Integer
End Structure

Documentation