to 张无忌:
比如顶级窗口为delph,要截取大富翁网页的图形,下面的程序该如何改?
procedure tform1.GetWindowImg
var
hd:HWND;
h:hdc;
t:trect;
begin
{找到他的主窗口的句柄就可以了,
然后用循环 GetWindow调用,传入不同参数,
查找子窗口,最后再GetDc
}
hd:=findwindow(nil,pchar('大富翁...'));
getwindowrect(hd,t);
h:=getdc(hd);
bitblt(canvas.handle,0,0,t.Right,t.Bottom,h,0,0,SRCCOPY);
end;