packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Interop/Taskbar/TabbedThumbnailNativeMethods.cs
/// <summary>
/// Sets the specified iconic thumbnail for the specified window.
/// This is typically done in response to a DWM message.
/// </summary>
/// <param name="hwnd">The window handle.</param>
/// <param name="hBitmap">The thumbnail bitmap.</param>
Sets the specified iconic thumbnail for the specified window.
This is typically done in response to a DWM message.
Sets the specified iconic thumbnail for the specified window . This is typically done in response to a DWM message .
internal static void SetIconicThumbnail(IntPtr hwnd, IntPtr hBitmap)
        {
            int rc = DwmSetIconicThumbnail(
                hwnd,
                hBitmap,
                DisplayFrame);
            if (rc != 0)
            {
                throw Marshal.GetExceptionForHR(rc);
            }
        }
internal static void SetIconicThumbnail ( IntPtr hwnd , IntPtr hBitmap ) { int rc = DwmSetIconicThumbnail ( hwnd , hBitmap , DisplayFrame ) ; if ( rc != 0 ) { throw Marshal . GetExceptionForHR ( rc ) ; } }
Sets the specified iconic thumbnail for the specified window.
Sets the specified iconic thumbnail for the specified window .
hwnd
IntPtr
The window handle.
The window handle .
hBitmap
IntPtr
The thumbnail bitmap.
The thumbnail bitmap .