3

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

user90188
  • 41
  • 2

3 Answers3

3

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...

PhiLho
  • 40,535
  • 6
  • 96
  • 134
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?

OregonGhost
  • 23,359
  • 7
  • 71
  • 108
  • Simple :) I need to screencast a lot of applications at once on the same machine, I cannot have them all maximized at the same time :) – user90188 Apr 21 '09 at 17:01
  • In that case, the DWM should be your friend, since the naive approach PhiLho describes won't work very well, especially if you want to work on the system at the same time. If you're on XP or earlier, I think you're out of luck. – OregonGhost Apr 22 '09 at 08:57
0

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

Noyoudont
  • 155
  • 3
  • 7