HTHUMBNAIL comes from Dwmapi (https://docs.microsoft.com/en-us/windows/win32/api/dwmapi/) I am using this function
DwmRegisterThumbnail(GetConsoleWindow(), FindWindow(0, "somewindow"), &thumbnail); and it has a HTHUMBNAIL pointer type as paremeter. I need to convert this to
Bitmap but it doesn't work.
HTHUMBNAIL hThumbnail; HBITMAP temp; temp = (HBITMAP)hThumbnail; Bitmap result(temp, NULL);
it doesn't work.
using DwmUpdateThumbnailProperties(thumbnail,&dskThumbProps); draws to the screen using a HTHUMBNAIL type, there must be a way to convert