Exemplo n.º 1
0
 public static void RegisterTab(IntPtr parent, IntPtr child)
 {
     if (IsInitialized)
     {
         taskbar.RegisterTab(child, parent);
     }
 }
Exemplo n.º 2
0
        // Thumbnails ============================================

        /// <summary>Informs the taskbar that a new tab or document thumbnail has been provided for display in an application's taskbar group flyout.</summary>
        /// <param name="parent">The tab or document window. This value is required and cannot be NULL.</param>
        /// <param name="childWindow">
        /// The application's main window. This value tells the taskbar which application's preview group to attach the new thumbnail to. This value is required
        /// and cannot be NULL.
        /// </param>
        /// <remarks>
        /// By itself, registering a tab thumbnail alone will not result in its being displayed. You must also call SetTabOrder to instruct the group where to
        /// display it.
        /// </remarks>
        public static void RegisterTab(IWin32Window parent, IWin32Window childWindow)
        {
            Validate7OrLater();
            if (childWindow == null)
            {
                throw new ArgumentNullException(nameof(childWindow));
            }
            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }
            taskbar4?.RegisterTab(childWindow.Handle, parent.Handle);
        }