using System;
using System.Runtime.InteropServices;
namespace Vanara.PInvoke
{
public static partial class ComCtl32
{
///
/// Contains information about a balloon tip associated with a button control.
///
[PInvokeData("Commctrl.h", MSDNShortId = "bb775466")]
[StructLayout(LayoutKind.Sequential)]
public struct EDITBALLOONTIP
{
///
/// A DWORD that contains the size, in bytes, of the structure.
///
public int cbStruct;
///
/// A pointer to a Unicode string that contains the title of the balloon tip.
///
[MarshalAs(UnmanagedType.LPWStr)] public string pszTitle;
///
/// A pointer to a Unicode string that contains the balloon tip text.
///
[MarshalAs(UnmanagedType.LPWStr)] public string pszText;
///
/// A value of type INT that specifies the type of icon to associate with the balloon tip.
///
public ToolTipIcon ttiIcon;
///
/// Initializes a new instance of the struct.
///
/// The title.
/// The text.
/// The icon.
public EDITBALLOONTIP(string title, string text, ToolTipIcon icon = ToolTipIcon.TTI_NONE)
{
cbStruct = Marshal.SizeOf(typeof(EDITBALLOONTIP));
pszText = text;
pszTitle = title;
ttiIcon = icon;
}
}
}
}