예제 #1
0
 public static void SetThumbnailToolTip(IntPtr hwnd, string tooltip)
 {
     if (IsInitialized)
     {
         taskbar.SetThumbnailTooltip(hwnd, tooltip);
     }
 }
예제 #2
0
 /// <summary>
 /// Specifies or updates the text of the tooltip that is displayed when the mouse pointer rests on an individual preview thumbnail in a taskbar button flyout.
 /// </summary>
 /// <param name="parent">The window whose thumbnail displays the tooltip. This window must belong to the calling process.</param>
 /// <param name="tip">The text to be displayed in the tooltip. This value can be NULL, in which case the title of the window is used as the tooltip.</param>
 public static void SetThumbnailTooltip(IWin32Window parent, string tip)
 {
     Validate7OrLater();
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     taskbar4?.SetThumbnailTooltip(parent.Handle, tip);
 }