急!!!API的问题100分(100分)

  • 主题发起人 主题发起人 fl95149
  • 开始时间 开始时间
F

fl95149

Unregistered / Unconfirmed
GUEST, unregistred user!
有本匹配Polyline的两个参数 <br>ppt: integer <br>&nbsp; Points to an array of POINT structures. Each structure in the array identifies a point in logical space.<br>cPoints: integer<br>&nbsp; Specifies the number of points in the array. This number must be greater than or equal to two. <br>现打算由Windows.Polyline改为TCanvas.Polygon(const Points: array of TPoint)<br>不知如何把ppt,cPoints两个参数转换为array of TPoint类型。
 
Polyline(<br><br>&nbsp; &nbsp; HDC hdc, // handle of device context <br>&nbsp; &nbsp; CONST POINT *lppt, // address of array containing endpoints <br>&nbsp; &nbsp; int cPoints // number of points in the array <br>&nbsp; &nbsp;);<br><br>你说的ppt就是你的包含各个端点的数组,cPoints就是端点数目<br><br>而ppt本身就是 &nbsp;array [0..cPoints-1] of tpoint &nbsp;类型的数组啊!<br><br>
 
自己定义一个类型<br>TArrayPoint=array of TPoint
 
后退
顶部