A way is to use a custom caption (DWM) and send WM_SETICON (ICON_SMALL) for the Taskbar icon
Thumbnail Preview Title Icon
Pedro Gil
35
Reputation points
Is it possible to customize/modify the icon showed in the title bar of a thumbnail? For example, if a window doesn't have an icon in the title bar, its thumbnail does display an icon... the standard application icon (please see attachments). Is there any way to use the Windows API to change such an icon, not in the window title bar but on the thumbnail? Thank you very much.