How to get the screenshot of a minimized applicati

2019-07-07 09:18发布

问题:

I'm trying to get the screenshot of a minimized application, any ideas of how to it under windows ? I'm using C#

tks in advance, Jose

回答1:

Restore, take the screenshot, minimize back...

If it is not on screen, I don't see how you can make a copy of the image...



回答2:

On Vista and later, this should be possible with the Desktop Window Manager. Explorer also displays (animated) screenshots of minimized windows when hovering over a taskbar entry with DWM enabled, so the DWM APIs should be the way to go.

Out of curiosity, why do you need such a screenshot?



回答3:

It's easy. Just use the printWindow Api call!