ImageEnView1.IO.CaptureFromScreen(iecsSpecifiedWindow, -1, NotepadWindowHandle);
This gives this correct screenshot from Notepad:
HOWEVER, if Notepad is MINIMIZED, then I get this undesired screenshot from Notepad:
Question: is there a way to get the correct screenshot from Notepad EVEN when Notepad is minimized?
Attached the source of the test project:
attach/PeterPanino/2019618103542_TImageEnIOCaptureFromScreen_Test.zip
49.58 KB