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

📄 appa.html

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

<head>
<title>Windows 95 API Dictionary: Appendix A: Data Types</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">- Appendix A: Data Types -</h1>

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

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

<h3 ALIGN="center">CHOOSECOLORS Type</h3>
<div align="center"><center>

<table WIDTH="50%">
  <tr>
    <td><code>Type CHOOSECOLORS<br>
    &nbsp;&nbsp;lStructSize As Long<br>
    &nbsp;&nbsp;hwndOwner As Long<br>
    &nbsp;&nbsp;hInstance As Long<br>
    &nbsp;&nbsp;rgbResult As Long<br>
    &nbsp;&nbsp;lpCustColors As String<br>
    &nbsp;&nbsp;flags As Long<br>
    &nbsp;&nbsp;lCustData As Long<br>
    &nbsp;&nbsp;lpfnHook As Long<br>
    &nbsp;&nbsp;lpTemplateName As String<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables declared with the CHOOSECOLORS type are designed to work with the ChooseColor 
function. It holds all the data passed to and returned from the function. The parameters 
you pass tell Windows how to make the ChooseColor box. (Note: In the API Text Viewer, this 
type is called CHOOSECOLOR. I have renamed it to avoid a conflict with the 
identically-named ChooseColor function.)<br>
</p>

<table WIDTH="95%" BORDER="2" CELLSPACING="0">
  <tr>
    <td WIDTH="20%"><code>lStructSize</code></td>
    <td WIDTH="80%">The length in bytes of the variable (use the Len function). </td>
  </tr>
  <tr>
    <td><code>hwndOwner</code></td>
    <td>The handle of the form calling the ChooseColor box. </td>
  </tr>
  <tr>
    <td><code>hInstance</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>rgbResult</code></td>
    <td>The color chosen by the user, in RGB format. </td>
  </tr>
  <tr>
    <td><code>lpCustColors</code></td>
    <td>A string holding a numeric array's custom colors data converted into Unicode format 
    using the StrConv function. For a clearer explanation, look at the example for the 
    ChooseColor function itself. </td>
  </tr>
  <tr>
    <td><code>flags</code></td>
    <td>Zero or more <a HREF="appb.html#colordialog">color dialog flags</a> telling how to 
    render the box. </td>
  </tr>
  <tr>
    <td><code>lCustData</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>lpfnHook</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>lpTemplateName</code></td>
    <td>? </td>
  </tr>
</table>
<b>

<p>Used by:</b> <a HREF="c.html#choosecolor">ChooseColor</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

<h3 ALIGN="center">JOYCAPS Type</h3>
<div align="center"><center>

<table WIDTH="50%">
  <tr>
    <td><code>Type JOYCAPS<br>
    &nbsp;&nbsp;wMid As Integer<br>
    &nbsp;&nbsp;wPid As Integer<br>
    &nbsp;&nbsp;szPname As String * 32<br>
    &nbsp;&nbsp;wXmin As Long<br>
    &nbsp;&nbsp;wXmax As Long<br>
    &nbsp;&nbsp;wYmin As Long<br>
    &nbsp;&nbsp;wYmax As Long<br>
    &nbsp;&nbsp;wZmin As Long<br>
    &nbsp;&nbsp;wZmax As Long<br>
    &nbsp;&nbsp;wNumButtons As Long<br>
    &nbsp;&nbsp;wPeriodMin As Long<br>
    &nbsp;&nbsp;wPeriodMax As Long<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variable declared with this type are designed to hold information about a joystick. 
This is not to be confused with the current status of the joystick. This mainly holds the 
minumum and maximum values along the axes.<br>
</p>

<table WIDTH="95%" CELLSPACING="0" BORDER="2">
  <tr>
    <td WIDTH="20%"><code>wMid</code></td>
    <td WIDTH="80%">? </td>
  </tr>
  <tr>
    <td><code>wPid</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>szPname</code></td>
    <td>The name of the joystick's device driver. </td>
  </tr>
  <tr>
    <td><code>wXmin</code></td>
    <td>The minimum x-axis coordinate value. </td>
  </tr>
  <tr>
    <td><code>wXmaz</code></td>
    <td>The maximum x-axis coordinate value. </td>
  </tr>
  <tr>
    <td><code>wYmin</code></td>
    <td>The minimum y-axis coordinate value. </td>
  </tr>
  <tr>
    <td><code>wYmax</code></td>
    <td>The maximum y-axis coordinate value. </td>
  </tr>
  <tr>
    <td><code>wZmin</code></td>
    <td>The minimum z-axis coordinate value. </td>
  </tr>
  <tr>
    <td><code>wZmax</code></td>
    <td>The maximum z-axis coordinate value. </td>
  </tr>
  <tr>
    <td><code>wNumButtons</code></td>
    <td>How many buttons the joystick has. </td>
  </tr>
  <tr>
    <td><code>wPeriodMin</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>wPeriodMax</code></td>
    <td>? </td>
  </tr>
</table>
<b>

<p>Used by:</b> <a HREF="j.html#joygetdevcaps">joyGetDevCaps</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

<h3 ALIGN="center">JOYINFO Type</h3>
<div align="center"><center>

<table WIDTH="50%">
  <tr>
    <td><code>Type JOYINFO<br>
    &nbsp;&nbsp;wXpos As Long<br>
    &nbsp;&nbsp;wYpos As Long<br>
    &nbsp;&nbsp;wZpos As Long<br>
    &nbsp;&nbsp;wButtons As Long<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables declared with this type are designed to hold the current position of a 
joystick. It reads the x, y, and z axes and also the button status.<br>
</p>

<table WIDTH="95%" CELLSPACING="0" BORDER="2">
  <tr>
    <td WIDTH="20%"><code>wXpos</code></td>
    <td WIDTH="80%">The current x-axis coordinate. </td>
  </tr>
  <tr>
    <td><code>wYpos</code></td>
    <td>The current y-axis coordinate. </td>
  </tr>
  <tr>
    <td><code>wZpos</code></td>
    <td>The current z-axis coordinate. </td>
  </tr>
  <tr>
    <td><code>wButtons</code></td>
    <td>The status of the buttons. AND the value with 1 to test button 1, 2 for button 2, 4 
    for button 3, 8 for button 4, etc. A non-zero return value means that it is being pressed. 
    </td>
  </tr>
</table>
<b>

<p>Used by:</b> <a HREF="j.html#joygetpos">joyGetPos</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

<h3 ALIGN="center">OPENFILENAME Data Type</h3>
<div align="center"><center>

<table WIDTH="50%">
  <tr>
    <td><code>Type OPENFILENAME<br>
    &nbsp;&nbsp;lStructSize As Long<br>
    &nbsp;&nbsp;hwndOwner As Long<br>
    &nbsp;&nbsp;hInstance As Long<br>
    &nbsp;&nbsp;lpstrFilter As String<br>
    &nbsp;&nbsp;lpstrCustomFilter As String<br>
    &nbsp;&nbsp;nMaxCustomFilter As Long<br>
    &nbsp;&nbsp;nFilterIndex As Long<br>
    &nbsp;&nbsp;lpstrFile As String<br>
    &nbsp;&nbsp;nMaxFile As Long<br>
    &nbsp;&nbsp;lpstrFileTitle As String<br>
    &nbsp;&nbsp;nMaxFileTitle As Long<br>
    &nbsp;&nbsp;lpstrInitialDir As String<br>
    &nbsp;&nbsp;lpstrTitle As String<br>
    &nbsp;&nbsp;flags As Long<br>
    &nbsp;&nbsp;nFileOffset As Long<br>
    &nbsp;&nbsp;nFileExtension As Long<br>
    &nbsp;&nbsp;lpstrDefExt As String<br>
    &nbsp;&nbsp;lCustData As Long<br>
    &nbsp;&nbsp;lpfnHook As Long<br>
    &nbsp;&nbsp;lpTemplateName As String<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables declared with the OPENFILENAME are designed to be used with the two Windows 
95 file dialog box API functions. The multitude of settings in the type are used both to 
tell Windows how to make the dialog box, as well as return the needed data to the program. 
(Note: <code>vbNullChar</code> is a Visual Basic constant)<br>
</p>

<table WIDTH="95%" CELLSPACING="0" BORDER="2">
  <tr>
    <td WIDTH="20%"><code>lStructSize</code></td>
    <td WIDTH="80%">The size in bytes of the variable (use the Len function). Set this after 
    setting all other parts of the variable. </td>
  </tr>
  <tr>
    <td><code>hwndOwner</code></td>
    <td>The handle of the form using the file dialog box. </td>
  </tr>
  <tr>
    <td><code>hInstance</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>lpstrFilter</code></td>
    <td>Fills in the File Type drop-down box. The format is &quot;<i>name of file type</i>&quot; 
    &amp; <code>vbNullChar</code> &amp; &quot;<i>mask</i>&quot; &amp; <code>vbNullChar</code> 
    ... for as many types as you want. The end of it should be <code>vbNullChar</code> &amp; <code>vbNullChar</code>. 
    A <i>mask</i> sorts the files (such as *.txt or *.html or even *.*). </td>
  </tr>
  <tr>
    <td><code>lpstrCustomFilter</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>nMaxCustFilter</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>nFilterIndex</code></td>
    <td>What data type of <code>lpstrFilter</code> should be the default. The first one is 1, 
    the second 2, etc. </td>
  </tr>
  <tr>
    <td><code>lpstrFile</code></td>
    <td>Set it as a series of blank spaces before the function call. A good size is at least 
    Space(255), since it must be large enough to hold the filename and path. After, it holds 
    file(s) selected. If one is selected, the path and filename are returned, followed by <code>vbNullChar</code> 
    and a series of spaces. If multiple files are selected, the value is the path &amp; <code>vbNullChar</code> 
    &amp; the first filename &amp; the second filename ..., the last filename ending with 2 <code>vbNullChar</code>s. 
    </td>
  </tr>
  <tr>
    <td><code>nMaxFile</code></td>
    <td>The length in characters of <code>lpstrFile</code> when you first set it. </td>
  </tr>
  <tr>
    <td><code>lpstrFileTitle</code></td>
    <td>Very similar to <code>lpstrFile</code>, this will hold only the filename of the 
    selected file. Again, set it to at least Space(255). If multiple files are selected, this 
    is not set to any useful value. </td>
  </tr>
  <tr>
    <td><code>nMaxFileTitle</code></td>
    <td>The length in characters of <code>lpstrFileTitle</code> </td>
  </tr>
  <tr>
    <td><code>lpstrInitialDir</code></td>
    <td>The directory to start in. If omitted, it looks in the current directory first. </td>
  </tr>
  <tr>

⌨️ 快捷键说明

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