Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.TabbedThumbnail C# (CSharp) 메소드

TabbedThumbnail() 공개 메소드

Creates a new TabbedThumbnail with the given window handle of the parent and a child control (e.g. TabPage or Panel)
This method can also be called when using a WindowsFormHost control in a WPF application. Call this method with the main WPF Window's handle, and windowsFormHost.Child control.
public TabbedThumbnail ( IntPtr parentWindowHandle, Control control ) : System
parentWindowHandle System.IntPtr Window handle of the parent window. /// This window has to be a top-level window and the handle cannot be null or IntPtr.Zero
control System.Windows.Forms.Control Child control for which a tabbed thumbnail needs to be displayed
리턴 System
        public TabbedThumbnail(IntPtr parentWindowHandle, Control control)
        {
            if (parentWindowHandle == IntPtr.Zero)
            {
                throw new ArgumentException(LocalizedMessages.TabbedThumbnailZeroParentHandle, "parentWindowHandle");
            }
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }

            WindowHandle = control.Handle;
            ParentWindowHandle = parentWindowHandle;
        }

Same methods

TabbedThumbnail::TabbedThumbnail ( IntPtr parentWindowHandle, IntPtr windowHandle ) : System