我想画屏幕,怎么能得到屏幕的Canvas? rt 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var aCanvas:TCanvas;begin aCanvas:=TCanvas.Create; try aCanvas.Handle:=GetDC(0); { //在此你就可以随便画了 aCanvas.lineto(500,500); } finally aCanvas.Free; end;end; canvas要realease要不就可能有内存泄漏,我刚从书上看的。 同意1楼。。HDC GetDC( HWND hWnd // handle to a window); ParametershWnd Handle to the window whose device context is to be retrieved. If this value is NULL, GetDC retrieves the device context for the entire screen. 如何在一个bpl中调用另一个bpl中的窗体 一个简单的多线程同步问题 200给曾经帮助过我的人~~ 请教一下 用ravereport5.0如何写预览和打印的程序呢? 求字符串长度的问题 问一个制作安装文件的问题?很急。。。。高分相送 如何改变单元名? 很简单的问题,送份啦!!! Delphi初学者问题之五(编程方式) 如何将菜单导入ListView中??? 程序控制优盘自动弹出?
aCanvas:TCanvas;
begin
aCanvas:=TCanvas.Create;
try
aCanvas.Handle:=GetDC(0);
{
//在此你就可以随便画了
aCanvas.lineto(500,500);
}
finally
aCanvas.Free;
end;
end;
HWND hWnd // handle to a window
);
Parameters
hWnd
Handle to the window whose device context is to be retrieved. If this value is NULL, GetDC retrieves the device context for the entire screen.