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

📄 appa.html

📁 windowsAPI介绍。很详细的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
    <td><code>lpstrTitle</code></td>
    <td>What appears in the title bar of the file dialog box (its caption property, 
    basically). </td>
  </tr>
  <tr>
    <td><code>flags</code></td>
    <td>Zero or more of the <a HREF="appb.html#filedialog">file dialog flags</a> telling how 
    to create the file dialog box. </td>
  </tr>
  <tr>
    <td><code>nFileOffset</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>nFileExtension</code></td>
    <td>? </td>
  </tr>
  <tr>
    <td><code>lpstrDefExt</code></td>
    <td>The default extension of a file (Save As box only). If the users saves a file with a 
    *.* mask chosen in the file type box, the file gets this extension. Don't put a period on 
    the extension. Also, the extension cannot be greater that 3 characters (a bug in Windows 
    95). </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="g.html#getopenfilename">GetOpenFileName</a>, <a
HREF="g.html#getsavefilename">GetSaveFileName</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

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

<table WIDTH="50%">
  <tr>
    <td><code>Type OSVERSIONINFO<br>
    &nbsp;&nbsp;dwOSVersionInfoSize As Long<br>
    &nbsp;&nbsp;dwMajorVersion As Long<br>
    &nbsp;&nbsp;dwMinorVersion As Long<br>
    &nbsp;&nbsp;dwBuildNumber As Long<br>
    &nbsp;&nbsp;dwPlatformId As Long<br>
    &nbsp;&nbsp;szCSDVersion As String * 128<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables defined with type OSVERSIONINFO are designed to hold version information for 
the version of Windows currently running. The various parts of OSVERSIONINFO hold 
different values stating the version number, platform, and other information about 
Windows.<br>
</p>

<table WIDTH="95%" BORDER="2" CELLSPACING="0">
  <tr>
    <td WIDTH="20%"><code>dwOSVersionInfoSize</code></td>
    <td WIDTH="80%">Set this to the size in bytes of the entire variable, i.e., 
    Len(OSVERSIONINFOSIZE_variable). </td>
  </tr>
  <tr>
    <td><code>dwMajorVersion</code></td>
    <td>The part of the version number before the first period. </td>
  </tr>
  <tr>
    <td><code>dwMinorVersion</code></td>
    <td>The part of the version number after the first period. </td>
  </tr>
  <tr>
    <td><code>dwBuildNumber</code></td>
    <td>The build number of the version. </td>
  </tr>
  <tr>
    <td><code>dwPlatformID</code></td>
    <td>One of the <a HREF="appb.html#platformidconstants">platform ID constants</a> 
    identifying which platform on Windows is running (for example, Windows 95 or Windows NT). </td>
  </tr>
  <tr>
    <td><code>szCSDVersion</code></td>
    <td>A null-terminated string holding other information about the operating system. </td>
  </tr>
</table>
<b>

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

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

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

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

<table WIDTH="50%">
  <tr>
    <td><code>Type POINTAPI<br>
    &nbsp;&nbsp;x As Long<br>
    &nbsp;&nbsp;y As Long<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables declared with this type are designed to hold a point's coordinates.<br>
</p>

<table WIDTH="95%" CELLSPACING="0" BORDER="2">
  <tr>
    <td WIDTH="20%"><code>x</code></td>
    <td WIDTH="80%">The x-axis coordinate. </td>
  </tr>
  <tr>
    <td><code>y</code></td>
    <td>The y-axis coordinate. </td>
  </tr>
</table>
<b>

<p>Used by:</b> <a HREF="g.html#getcursorpos">GetCursorPos</a>, <a HREF="m.html#movetoex">MoveToEx</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

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

<table WIDTH="50%">
  <tr>
    <td><code>Type RECT<br>
    &nbsp;&nbsp;Left As Long<br>
    &nbsp;&nbsp;Top As Long<br>
    &nbsp;&nbsp;Right As Long<br>
    &nbsp;&nbsp;Bottom As Long<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables defined with type RECT are designed to hold some sort of rectangle. 
Oftentimes the information is the size of a window. The parts of RECT hold the coordinates 
of the extreme corners of the rectangle.<br>
</p>

<table WIDTH="95%" BORDER="2" CELLSPACING="0">
  <tr>
    <td WIDTH="20%"><code>Left</code></td>
    <td WIDTH="80%">The x coordinate of the upper-left corner of the rectangle. </td>
  </tr>
  <tr>
    <td><code>Top</code></td>
    <td>The y coordinate of the upper-left corner of the rectangle. </td>
  </tr>
  <tr>
    <td><code>Right</code></td>
    <td>The x coordinate of the lower-right corner of the rectangle. </td>
  </tr>
  <tr>
    <td><code>Bottom</code></td>
    <td>The y coordinate of the lower-right corner of the rectangle. </td>
  </tr>
</table>
<b>

<p>Used By:</b> <a HREF="c.html#clipcursor">ClipCursor</a>, <a HREF="c.html#copyrect">CopyRect</a>, 
<a HREF="e.html#equalrect">EqualRect</a>, <a HREF="g.html#getclipcursor">GetClipCursor</a>, 
<a HREF="g.html#getwindowrect">GetWindowRect</a>, <a HREF="i.html#inflaterect">InflateRect</a>, 
<a HREF="i.html#intersectrect">IntersectRect</a>, <a HREF="i.html#isrectempty">IsRectEmpty</a>, 
<a HREF="o.html#offsetrect">OffsetRect</a>, <a HREF="p.html#ptinrect">PtInRect</a>, <a
HREF="s.html#setrect">SetRect</a>, <a HREF="s.html#setrectempty">SetRectEmpty</a>, <a
HREF="s.html#subtractrect">SubtractRect</a>, <a HREF="u.html#unionrect">UnionRect</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

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

<table WIDTH="50%">
  <tr>
    <td><code>Type SYSTEMTIME<br>
    &nbsp;&nbsp;wYear As Integer<br>
    &nbsp;&nbsp;wMonth As Integer<br>
    &nbsp;&nbsp;wDayOfWeek As Integer<br>
    &nbsp;&nbsp;wDay As Integer<br>
    &nbsp;&nbsp;wHour As Integer<br>
    &nbsp;&nbsp;wMinute As Integer<br>
    &nbsp;&nbsp;wSecond As Integer<br>
    &nbsp;&nbsp;wMilliseconds As Integer<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables defined with the SYSTEMTIME type are designed to hold very precise date and 
time information, down to the millisecond. There are two ways to store dates: absolute and 
relative. Absolute dates are &quot;normal&quot; dates, like January 15, 1998 or December 
25, 2001. Relative dates are used when <code>wYear</code> is set to 0. In this case, the 
dates are of a form like &quot;the first Sunday in June&quot; or &quot;the third Wednesday 
in November&quot;. In this case, <code>wDay</code> holds the first, second, third, fourth, 
or fifth information.<br>
</p>

<table WIDTH="95%" CELLSPACING="0" BORDER="2">
  <tr>
    <td WIDTH="20%"><code>wYear</code></td>
    <td WIDTH="80%">In an absolute date, the four-digit year. In a relative date, 0. </td>
  </tr>
  <tr>
    <td><code>wMonth</code></td>
    <td>The number of the month. 1 is January, 2 is February, 3 is March, etc. </td>
  </tr>
  <tr>
    <td><code>wDayOfWeek</code></td>
    <td>The number of the weekday. 0 is Sunday, 1 is Monday, 2 is Tuesday, etc. </td>
  </tr>
  <tr>
    <td><code>wDay</code></td>
    <td>In an absolute date, the number of the day (such as the 21 [of June]). In a relative 
    date, 1 is the first, 2 is the second, all the way to 5 is the fifth/last. </td>
  </tr>
  <tr>
    <td><code>wHour</code></td>
    <td>The hour, in 24-hour format. </td>
  </tr>
  <tr>
    <td><code>wMinute</code></td>
    <td>The minutes. </td>
  </tr>
  <tr>
    <td><code>wSecond</code></td>
    <td>The seconds. </td>
  </tr>
  <tr>
    <td><code>wMilliseconds</code></td>
    <td>The milliseconds (1000 milliseconds = 1 second). </td>
  </tr>
</table>
<b>

<p>Used by:</b> <a HREF="g.html#getlocaltime">GetLocalTime</a>, <a
HREF="g.html#getsystemtime">GetSystemTime</a>, <a HREF="#time_zone_information">TIME_ZONE_INFORMATION</a><br>
<a HREF="index.html" REL="Index">返回到索引.</a> </p>

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

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

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

<table WIDTH="50%">
  <tr>
    <td><code>Type TIME_ZONE_INFORMATION<br>
    &nbsp;&nbsp;Bias As Long<br>
    &nbsp;&nbsp;StandardName(32) As Integer<br>
    &nbsp;&nbsp;StandardDate As <a HREF="#systemtime">SYSTEMTIME</a><br>
    &nbsp;&nbsp;StandardBias As Long<br>
    &nbsp;&nbsp;DaylightName(32) As Integer<br>
    &nbsp;&nbsp;DaylightDate As <a HREF="#systemtime">SYSTEMTIME</a><br>
    &nbsp;&nbsp;DaylightBias As Long<br>
    End Type</code></td>
  </tr>
</table>
</center></div>

<p>Variables dimensioned with the TIME_ZONE_INFORMATION are designed to hold information 
about the computer's selected time zone. Normally, you don't have to worry about these 
settings, because Windows 95 keeps tract of daylight savings time and such. Interestingly 
(and aggravatingly) enough, the two arrays are actually C-style strings! In the C language 
(which Windows seems to mainly be written in), there are no string variables -- instead, 
numeric arrays are used, each value holding an ASCII value. This is how these two arrays 
work. To read them, start at the beginning and read the ASCII code one by one. The end of 
the string is marked by a null character (ASCII code 0), after which is garbage data. The 
example for GetTimeZoneInformation demonstrates how to read these strings.<br>
</p>

<table WIDTH="95%" BORDER="2" CELLSPACING="0">
  <tr>
    <td WIDTH="20%"><code>Bias</code></td>
    <td WIDTH="80%">The difference in minutes between UTC time and local time. In other words, 
    UTC time = local time + <code>Bias</code>. </td>
  </tr>
  <tr>
    <td><code>StandardName(32)</code></td>
    <td>A C-style string holding the name of the time zone in standard time. </td>
  </tr>
  <tr>
    <td><code>StandardDate</code></td>
    <td>Holds the relative date when daylight savings time ends (if applicable). </td>
  </tr>
  <tr>
    <td><code>StandardBias</code></td>
    <td>A number to add to the <code>Bias</code> to form the bias during standard time. </td>
  </tr>
  <tr>
    <td><code>DaylightName(32)</code></td>
    <td>A C-style string holding the name of the time zone in daylight savings time. </td>
  </tr>
  <tr>
    <td><code>DaylightDate</code></td>
    <td>Holds the relative date when daylight savings time begins (if applicable). </td>
  </tr>
  <tr>
    <td><code>DaylightBias</code></td>
    <td>A number to add to the <code>Bias</code> to form the bias during daylight savings time 
    (normally -60). </td>
  </tr>
</table>
<b>

<p>Used by:</b> <a HREF="g.html#gettimezoneinformation">GetTimeZoneInformation</a><br>
<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 + -