DwmApiDwmSetIconicLivePreviewBitmap(IntPtr, SafeBitmapHandle, IntPtr, DwmIconicLivePreviewFlags) Method

Sets a static iconic Bitmap on a window or tab to use as a thumbnail representation.

The Taskbar can use this Bitmap as a thumbnail switch target for the window or tab.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DwmApi.dll")]
public static int DwmSetIconicLivePreviewBitmap(
	IntPtr hWnd,
	SafeBitmapHandle hBitmap,
	IntPtr offset,
	DwmIconicLivePreviewFlags flags
)

Parameters

hWnd  IntPtr
A handle To the window Or tab.

This window must belong To the calling process.

hBitmap  SafeBitmapHandle
A handle to the bitmap to represent the window that hwnd specifies.
offset  IntPtr
The offset of a tab window's client region (the content area inside the client window frame) from the host window's frame.

This offset enables the tab window's contents to be drawn correctly in a live preview when it is drawn without its frame.

flags  DwmIconicLivePreviewFlags
The display options for the live preview.

Return Value

Int32
If this function succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

Remarks

See Also