Free Yu a écrit :
> I'm writing an application to stream the content of specified windows. The BitBlt works well for many applications, and even for DirectX applications.
> However, when trying to get the content of Microsoft Word or PowerPoint, the magic fails and returns a black rectangle of pixels.
>
> I wonder whether there's a standard way to get the bits of the window content for any windows.
A way is with DwmRegisterThumbnail
(used by Explorer Thumbnails in the Taskbar)
(then D3DXSaveSurfaceToFileInMemory to get the HBITMAP)
or also recent methods :
https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/