Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

TOOLTIPTEXT (Structures)
 
.
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
internal 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
Structure TOOLTIPTEXT
   Public TODO
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

User-Defined Field Types:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions