示例#1
0
 public static void SetTabActive(IntPtr child, IntPtr insertBefore)
 {
     if (IsInitialized)
     {
         taskbar.SetTabActive(child, insertBefore, 0);
     }
 }
示例#2
0
 /// <summary>Informs the taskbar that a tab or document window has been made the active window.</summary>
 /// <param name="parent">The active tab window. This window must already be registered through RegisterTab. This value can be NULL if no tab is active.</param>
 /// <param name="childWindow">
 /// The application's main window. This value tells the taskbar which group the thumbnail is a member of. This value is required and cannot be NULL.
 /// </param>
 public static void SetTabActive(IWin32Window parent, IWin32Window childWindow)
 {
     Validate7OrLater();
     if (childWindow == null)
     {
         throw new ArgumentNullException(nameof(childWindow));
     }
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     taskbar4?.SetTabActive(childWindow.Handle, parent.Handle, 0);
 }