I am trying to get the image of a window. All I have is its window handle. One possible solution is given here. The problem is that it only works when the window is completely visible. In case the window is partially visible, or hidden behind another window, the CopyFromScreen()
method does not give the required result.
I am looking for a solution other than to make the window visible by making it the topmost window and then returning back to is position. The reason being, I have to capture the image frequently and for multiple windows. This will make the the screen to flicker continuously.