/// <summary> /// Create a native tool tip control for this listview /// </summary> protected virtual void CreateToolTip() { ToolTip = new ToolTipControl(); ToolTip.Create(Handle); ToolTip.AddTool(this); ToolTip.Showing += ListView.headerToolTip_Showing; }
/// <summary> /// Create a ToolTipControl to manage the tooltip control used by the listview control /// </summary> protected virtual void CreateCellToolTip() { this.cellToolTip = new ToolTipControl(); this.cellToolTip.AssignHandle(NativeMethods.GetTooltipControl(this)); this.cellToolTip.Showing += new EventHandler<ToolTipShowingEventArgs>(HandleCellToolTipShowing); this.cellToolTip.SetMaxWidth(); NativeMethods.MakeTopMost(this.cellToolTip); }
static public IntPtr SetTooltipControl(ListView lv, ToolTipControl tooltip) { return SendMessage(lv.Handle, LVM_SETTOOLTIPS, 0, tooltip.Handle); }
public static IntPtr SetTooltipControl(ListView lv, ToolTipControl tooltip) { return(SendMessage(lv.Handle, LVM_SETTOOLTIPS, 0, tooltip.Handle)); }
/// <summary> /// Create a ToolTipControl to manage the tooltip control used by the listview control /// </summary> protected virtual void CreateCellToolTip() { cellToolTip = new ToolTipControl(); cellToolTip.AssignHandle(NativeMethods.GetTooltipControl(this)); cellToolTip.Showing += HandleCellToolTipShowing; cellToolTip.SetMaxWidth(); NativeMethods.MakeTopMost(cellToolTip); }
public static IntPtr SetTooltipControl(ListView lv, ToolTipControl tooltip) { return(SendMessage(lv.Handle, 0x104a, 0, tooltip.Handle)); }