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.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- 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.
Int32
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.