Hi all i remember to have seen a solution for capturing a window that is either minimized or partailly or fully covered by another window or outside the visible desktop. That code i use currently only works with an active window. It is very common code, that creates a DC, a compatible DC, a compatible bitmap based on the given hwnd, BitBlts the bytes into the comp-DC and finally into the comp-bitmap using GetBitmapBits. I am sure I've seen a solution that doesn't assume the window is actually visible/active/non-minimized? Any ideas? Thx for reading, Alex
Alexander Mueller schrieb: > Hi all > > i remember to have seen a solution for capturing a window > that is either minimized or partailly or fully covered by > another window or outside the visible desktop. > > That code i use currently only works with an active window. > It is very common code, that creates a DC, a compatible DC, > a compatible bitmap based on the given hwnd, BitBlts the bytes > into the comp-DC and finally into the comp-bitmap using > GetBitmapBits. > > I am sure I've seen a solution that doesn't assume the window > is actually visible/active/non-minimized? > > Any ideas? I found a good solution on The Code Project that simply uses PrintWindow instead of BitBlt. http://www.codeproject.com/KB/cs/CapturingMinimizedWindow.aspx Nice thing for only one line needs to get changed. Now i am facing a different problem. I am sequentially capturing the same window for creating a vid from it (using Windows Media SDK). The side-effect of using PrintWindow is that the captured window doesn't seem to get updated properly and displays all kinds of artefacts while the sequence of "Screenshots" continuous, looks very odd. Any ideas, could it help to send some update-msg to the window before/after Printing? I am not an expert in this Sendmessage stuff a/o core window routines. Any ideas again? Thx, Alex