⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 polydraw.htm

📁 WinAPI函数打包下载.rar
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋体"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>PolyDraw</title>
</head>

<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<div align="center"><center>

<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" height="16"><a name="PolyDraw">PolyDraw</a></td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
  <tr>
    <td width="102%" colspan="3">VB声明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Declare Function PolyDraw Lib &quot;gdi32&quot; Alias 
    &quot;PolyDraw&quot; (ByVal hdc As Long, lppt As POINTAPI, lpbTypes As Byte, ByVal cCount 
    As Long) As Long</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">说明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">描绘一条复杂的曲线,由线段及贝塞尔曲线组成</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">返回值</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Long,非零表示成功,零表示失败</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">参数表</td>
  </tr>
  <tr>
    <td width="25%">参数</td>
    <td width="77%" colspan="2">类型及说明</td>
  </tr>
  <tr>
    <td width="25%">hdc</td>
    <td width="77%" colspan="2">Long,用于绘图的设备场景</td>
  </tr>
  <tr>
    <td width="25%">lppt</td>
    <td width="77%" colspan="2"><a href="POINTAPI.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/POINTAPI.htm">POINTAPI</a>,<a href="POINTAPI.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/POINTAPI.htm">POINTAPI</a>结构数组的第一个元素。这个数组用于为描绘的每一段都载入坐标数据。这些信息是用逻辑坐标提供的</td>
  </tr>
  <tr>
    <td width="25%" rowspan="4">lpbTypes</td>
    <td width="77%" colspan="2">Byte,一个字节数组的第一个元素。这个数组定义了与每个坐标对应的操作类型。其中包括:</td>
  </tr>
  <tr>
    <td width="37%">PT_MOVETO</td>
    <td width="38%">坐标是一幅新打开图形的起点</td>
  </tr>
  <tr>
    <td width="37%">PT_LINETO</td>
    <td width="38%">坐标是来自前一个坐标的一条线的终点</td>
  </tr>
  <tr>
    <td width="37%">PT_BEZIERTO</td>
    <td width="38%">以三点一组的形式出现。头两个点是控制点,第三个是贝塞尔曲线的终点。PT_LINETO和PT_BEZIERTO也许能与PT_CLOSEFIGURE联合使用。在这种情况下,它代表一幅图形的最后一个点。将这个点与图形的第一个点连接起来后,图形就会封闭</td>
  </tr>
  <tr>
    <td width="25%">cCount</td>
    <td width="77%" colspan="2">Long,lppt和lpbTypes数组的大小,设为零表示取得需要的数组大小<br>
    原文:The size of the lpPoint and lpTypes array. Set to zero to retrieve the required 
    array size.</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">注解</td>
  </tr>
  <tr>
    <td width="102%" colspan="3"><p align="left">当前的画笔位置设为最后一条线段或lppt数组中的曲线的终点</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"><p align="right"><a href="#PolyDraw">Top</a></td>
  </tr>
</table>
</center></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -