@Zacherl,
thank you very much, your suggestion about
MagSetWindowFilterList worked fine.
I will try translate the part of save content of
hwndmag to a image format.
I tried the suggestion of @Fukiszo but not worked see:
Delphi-Quellcode:
Canvas := TCanvas.Create;
MyBitmap := TBitmap.Create;
DC := GetWindowDC(hwndMag);
GetWindowRect(hwndMag, r);
try
Canvas.Handle :=
DC;
MyBitmap.Width := r.Width;
MyBitmap.Height := r.Height;
MyBitmap.Canvas.CopyRect(Rect(0, 0, MyBitmap.Width, MyBitmap.Height), Canvas,
Rect(0, 0, r.Width, r.Height));
MyBitmap.SaveToFile('
c:\screen.bmp');
finally
ReleaseDC(0,
DC);
MyBitmap.Free;
Canvas.Free
end;
But if someone know a way in Delphi and that works, i will accept.