Is it possible to screen capture a specific window (also possibly of another process)?
Currently I am capturing the entire desktop of a specific monitor, however wh
Yes, Just as easy as capturing the full screen. You just use GetWindowDC()
on the required window rather than GetDesktopWindow()
, then BitBlt()
from that to your target DC. You can also get the correct size by using GetWindowRect()
.
Note that this method also allows you to capture from hidden/covered windows where a full screenshot with a bounding rectangle doesn't.
See this question for some more details.