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

📄 p.html

📁 windowsAPI介绍。很详细的
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//Netscape Comm. Corp.//DTD HTML//EN">
<html>

<head>
<title>Windows 95 API Dictionary: P</title>
<base TARGET="_self">
<script LANGUAGE="JavaScript">
<!--Cloak
function statbar(txt) {
  window.status = txt;
  setTimeout("erase()",3000);
}
function erase() {
  window.status = "";
}
//Decloak-->
</script>
</head>

<body BGCOLOR="#004000" TEXT="#FFFFFF" LINK="#FFFF00" VLINK="#FF8000" ALINK="#80FF80">

<p><a NAME="top"></a></p>

<h1 ALIGN="center">- P -</h1>

<hr ALIGN="center" WIDTH="85%" SIZE="5">

<p ALIGN="left"><a NAME="ptinrect"></a></p>

<h3 ALIGN="center">PtInRect Function</h3>
<code>

<p align="center">Declare Function PtInRect Lib &quot;user32.dll&quot; (lpRect As <a
HREF="appa.html#rect">RECT</a>, x As Long, y As Long) As Long</code><br>
PtInRect determines if a point lies inside or outside of a rectangle. Note that points 
along the top and left sides are considered inside, while those along the right and bottom 
sides are considered outside. The function returns 1 if the point is inside, and 0 if it 
is outside.<br>
</p>

<table WIDTH="95%" BORDER="2" CELLSPACING="0">
  <tr>
    <td WIDTH="20%"><code>lpRect</code></td>
    <td WIDTH="80%">The rectangle to search inside. </td>
  </tr>
  <tr>
    <td><code>x</code></td>
    <td>The x-coordinate of the point to determine if it is inside or outside. </td>
  </tr>
  <tr>
    <td><code>y</code></td>
    <td>The y-coordinate of the point to determine if it is inside or outside. </td>
  </tr>
</table>
<b>

<p>Example:</b><br>
<code>&nbsp;&nbsp;'Example of outside/inside the rectangle<br>
&nbsp;&nbsp;Dim r As RECT<br>
&nbsp;&nbsp;x = SetRect(r, 50, 50, 150, 150) '.Left = 50, .Top = 50, .Right = 150, .Bottom 
= 150<br>
&nbsp;&nbsp;Form1.Print PtInRect(r, 75, 100) 'returns 1 -- it is inside<br>
&nbsp;&nbsp;Form1.Print PtInRect(r, 100, 100) 'returns 0 -- it is outside</code><br>
<br>
<b>Category:</b> <a HREF="index.html#rectmanipulation" REL="Index">RECT Manipulation</a><br>
<a HREF="#top">返回到索引</a><a HREF="index.html" REL="Index">.</a> </p>

<hr ALIGN="center" WIDTH="85%" SIZE="5">

<p ALIGN="left"> </p>
</body>
</html>

⌨️ 快捷键说明

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