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

📄 u.html

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

<head>
<title>Windows 95 API Dictionary: U</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">- U -</h1>

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

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

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

<p align="center">Declare Function UnionRect Lib &quot;user32.dll&quot; (lpDestRect As <a
HREF="appa.html#rect">RECT</a>, lpSrc1Rect As <a HREF="appa.html#rect">RECT</a>, 
lpSrc2Rect As <a HREF="appa.html#rect">RECT</a>) As Long</code><br>
UnionRect determines the smallest (or tightest) possible rectangle containing two other 
rectangles. This rectangle is called the union rectangle because it is derived from the 
area that the two rectangles occupy. The union rectangle will of course be at least as big 
as either rectangle. You can safely ignore the value returned, since the union rectangle 
is put into <code>lpDestRect</code>.<br>
</p>

<table WIDTH="95%" BORDER="2" CELLSPACING="0">
  <tr>
    <td WIDTH="20%"><code>lpDestRect</code></td>
    <td WIDTH="80%">Receives the coordinates of the union rectangle. </td>
  </tr>
  <tr>
    <td><code>lpSrc1Rect</code></td>
    <td>One of the rectangles that determine the union rectangle. </td>
  </tr>
  <tr>
    <td><code>lpSrc2Rect</code></td>
    <td>The other rectangle that determines the union rectangle. </td>
  </tr>
</table>
<b>

<p>Example:</b><br>
<code>&nbsp;&nbsp;'s1.Left = 50, .Top = .50, .Right = 150, .Bottom = 150<br>
&nbsp;&nbsp;'s2.Left = 100, .Top = 100, .Right = 200, .Bottom = 200<br>
&nbsp;&nbsp;Dim union As RECT, s1 As RECT, s2 As RECT<br>
&nbsp;&nbsp;x = SetRect(s1, 50, 50, 150, 150) 'API function sets the rectangle<br>
&nbsp;&nbsp;x = SetRect(s2, 100, 100, 200, 200)<br>
&nbsp;&nbsp;x = UnionRect(union, s1, s2)<br>
&nbsp;&nbsp;'Now, union.Left = 50, .Top = 50, .Right = 200, .Bottom = 200</code><br>
<br>
<b>Related Calls:</b> <a HREF="i.html#intersectrect">IntersectRect</a>, <a
HREF="s.html#subtractrect">SubtractRect</a><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 + -