***多边形的画法。是想要用鼠标点击的那种,不要anvas.Polygon([Point(10, 10), Point(30, 10), 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 要实心多边形还是SetWindowRgn 要实心多边形,还是空心的?如果是实心的用SetWindowRgn就可以了。如果要空心的麻烦一点,你得用CombinRgn合成一个空心rgn,然后用setwindowrgn创建 你说的这个,这次borland程序员大赛获奖作品中有一个,It's difficult for me .到www.delphibbs.com上看一下吧,会公开原码的。灌水 to apache57(虾米) ( ): 能否说得具体点。 你需要作一个多边形控件吧。给你个demo,把窗体设置成空心多边形。可点击。procedure TForm1.Button1Click(Sender: TObject);var pts : Array [1..5] of TPoint; rgn,rgn1 : HRgn;begin pts[1] := Point(100,100); pts[2] := Point(160,185); pts[3] := Point(140,245); pts[4] := Point(60,245); pts[5] := Point(40,185); rgn := CreatePolygonrgn(pts,5,winding); pts[1] := Point(100,98); pts[2] := Point(158,185); pts[3] := Point(138,243); pts[4] := Point(62,243); pts[5] := Point(42,185); rgn1 := CreatePolygonRgn(pts,5,winding); combinergn(rgn,rgn,rgn1,rgn_xor); SetWindowrgn(handle,rgn,true);end; delphi里如何得到一个变量的地址值 C/S 如何在无盘网络中广泛应用? 等待!!!!按月查找问题! 字符串问题 delphi6.0里面能不能做出菜单可以拖动的效果 100分求TMS AdvPanel源码版 SQL SERVER 2000 的标准版和企业版 DB服务器能装在WINXP上面吗? 一只小菜鸟的问题,还往高手知道 哪有ado的升级补丁 怎样在Delphi中执行一个外部可执行文件,比如:在Delphi中执行一个VB做的EXE文件。 哪里可以下载delphi6.0 请问哪里可以下载到delphi6.0,谢谢!
SetWindowRgn
如果是实心的用SetWindowRgn就可以了。
如果要空心的麻烦一点,你得用CombinRgn合成一个空心rgn,然后用setwindowrgn
创建
能否说得具体点。
procedure TForm1.Button1Click(Sender: TObject);
var
pts : Array [1..5] of TPoint;
rgn,rgn1 : HRgn;
begin
pts[1] := Point(100,100);
pts[2] := Point(160,185);
pts[3] := Point(140,245);
pts[4] := Point(60,245);
pts[5] := Point(40,185);
rgn := CreatePolygonrgn(pts,5,winding);
pts[1] := Point(100,98);
pts[2] := Point(158,185);
pts[3] := Point(138,243);
pts[4] := Point(62,243);
pts[5] := Point(42,185);
rgn1 := CreatePolygonRgn(pts,5,winding);
combinergn(rgn,rgn,rgn1,rgn_xor);
SetWindowrgn(handle,rgn,true);
end;