?? appb.html
字號:
Const OFN_PATHMUSTEXIST = &H800<br>
Const OFN_FILEMUSTEXIST = &H1000<br>
Const OFN_CREATEPROMPT = &H2000<br>
Const OFN_SHAREAWARE = &H4000<br>
Const OFN_NODEREFERENCELINKS = &H100000</code></td>
</tr>
</table>
</center></div>
<p>The file dialog constants tell Windows 95 how to render the file dialog box. You can
use more than one flag by adding the values, but you cannot use contradictory values (such
as both OFN_FILEMUSTEXIST and OFN_CREATEPROMPT) that have opposite functions.<br>
</p>
<table WIDTH="95%" CELLSPACING="0" BORDER="2">
<tr>
<td WIDTH="20%"><code>OFN_READONLY</code></td>
<td WIDTH="80%">If this is part of .flags after the function call, the user clicked the
Open As Read Only box in the Open dialog box (do a .flags AND OFN_READONLY). </td>
</tr>
<tr>
<td><code>OFN_OVERWRITEPROMPT</code></td>
<td>Prompt if a file that already exists is chosen in the Save dialog box. </td>
</tr>
<tr>
<td><code>OFN_HIDEREADONLY</code></td>
<td>Hide the read-only check box in the Open dialog box. </td>
</tr>
<tr>
<td><code>OFN_NOCHANGEDIR</code></td>
<td>Don't change the current directory to match the one chosen in the dialog box. </td>
</tr>
<tr>
<td><code>OFN_SHOWHELP</code></td>
<td>Show the Help button in the dialog box (but I don't know how to make it work yet). </td>
</tr>
<tr>
<td><code>OFN_NOVALIDATE</code></td>
<td>Don't check to see if the filename contains invalid characters. </td>
</tr>
<tr>
<td><code>OFN_ALLOWMULTISELECT</code></td>
<td>Allow the user to check multiple files in the Open dialog box. </td>
</tr>
<tr>
<td><code>OFN_PATHMUSTEXIST</code></td>
<td>Only allow the selection of existing paths. </td>
</tr>
<tr>
<td><code>OFN_FILEMUSTEXIST</code></td>
<td>Only allow the selection of existing files. </td>
</tr>
<tr>
<td><code>OFN_CREATEPROMPT</code></td>
<td>Prompt if a non-existing file is chosen. </td>
</tr>
<tr>
<td><code>OFN_SHAREAWARE</code></td>
<td>Ignore any sharing violations. </td>
</tr>
<tr>
<td><code>OFN_NODEREFERENCELINKS</code></td>
<td>Normally, if the user chooses a shortcut in the dialog box, the box returns the file
it points to. This option has the dialog box return the .lnk or .pif (shortcut file)
itself, not what it points to. </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="g.html#getopenfilename">GetOpenFileName</a>, <a
HREF="g.html#getsavefilename">GetSaveFileName</a> (both used through <a
HREF="appa.html#openfilename">OPENFILENAME</a>)<br>
<a HREF="#top">返回到索引</a><a HREF="index.html" REL="Index">.</a> </p>
<hr ALIGN="center" WIDTH="85%" SIZE="5">
<p ALIGN="left"><a NAME="insertafterflags"></a></p>
<h3 ALIGN="center">Insert After Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const HWND_BOTTOM = 1<br>
Const HWND_NOTOPMOST = -2<br>
Const HWND_TOP = 0<br>
Const HWND_TOPMOST = -1</code></td>
</tr>
</table>
</center></div>
<p>The Insert After Flags are used by SetWindowPos to determine the window's position in
the Z-order. The Z-order basically says which windows are above or below other windows.
These constants set the Z-order of the window to a certain value.<br>
</p>
<table WIDTH="95%" BORDER="2" CELLSPACING="0">
<tr>
<td WIDTH="20%"><code>HWND_BOTTOM</code></td>
<td WIDTH="80%">Put the window at the bottom of the Z-order. </td>
</tr>
<tr>
<td><code>HWND_NOTOPMOST</code></td>
<td>Put the window below all topmost windows and above all nontopmost windows. </td>
</tr>
<tr>
<td><code>HWND_TOP</code></td>
<td>Put the window at the top of the Z-order. </td>
</tr>
<tr>
<td><code>HWND_TOPMOST</code></td>
<td>Make the window topmost (above all other windows), where it stays even while inactive.
</td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="s.html#setwindowpos">SetWindowPos</a><br>
<a HREF="#top">返回到索引</a><a HREF="index.html" REL="Index">.</a> </p>
<hr ALIGN="center" WIDTH="85%" SIZE="5">
<p ALIGN="left"><a NAME="platformidconstants"></a></p>
<h3 ALIGN="center">Platform ID Constants</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const VER_PLATFORM_WIN32s = 0<br>
Const VER_PLATFORM_WIN32_WINDOWS = 1<br>
Const VER_PLATFORM_WIN32_NT = 2</code></td>
</tr>
</table>
</center></div>
<p>The platform ID constants identify which version of Windows is running. One of these
three values is returned in the <code>dwPlatformID</code> member of the OSVERSIONINFO
variable using the GetVersionEx function. Obviously, exactly one of these values will be
returned, and there's nothing I've found yet to set with one of these values.<br>
</p>
<table WIDTH="95%" CELLSPACING="0" BORDER="2">
<tr>
<td WIDTH="20%"><code>VER_PLATFORM_WIN32s</code></td>
<td WIDTH="80%">Windows 3.x is running, using the Win32s pseudo-32-bit enhancements. </td>
</tr>
<tr>
<td><code>VER_PLATFORM_WIN32_WINDOWS</code></td>
<td>Windows 95 is running. </td>
</tr>
<tr>
<td><code>VER_PLATFORM_WIN32_NT</code></td>
<td>Windows NT is running. </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="g.html#getversionex">GetVersionEx</a> (used through <a
HREF="appa.html#osversioninfo">OSVERSIONINFO</a>)<br>
<a HREF="#top">返回到索引</a><a HREF="index.html" REL="Index">.</a> </p>
<hr ALIGN="center" WIDTH="85%" SIZE="5">
<p ALIGN="left"><a NAME="setwindowposflags"></a></p>
<h3 ALIGN="center">SetWindowPos Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const SWP_FRAMECHANGED = &H20<br>
Const SWP_DRAWFRAME = SWP_FRAMECHANGED<br>
Const SWP_HIDEWINDOW = &H80<br>
Const SWP_NOACTIVATE = &H10<br>
Const SWP_NOCOPYBITS = &H100<br>
Const SWP_NOMOVE = &H2<br>
Const SWP_NOSIZE = &H1<br>
Const SWP_NOREDRAW = &H8<br>
Const SWP_NOZORDER = &H4<br>
Const SWP_SHOWWINDOW = &H40</code></td>
</tr>
</table>
</center></div>
<p>The SetWindowPos Flags give additional information to the SetWindowPos function telling
it how to move the window. Most of them either tell the function not to move the window in
some way or affect the redrawing of the window. You can use as many of these as you want
by Or-ing them together, as long as you do not try to use two opposite flags (like
SWP_HIDEWINDOW and SWP_SHOWWINDOW). </p>
<table WIDTH="95%" BORDER="2" CELLSPACING="0">
<tr>
<td WIDTH="20%"><code>SWP_FRAMECHANGED<br>
SWP_DRAWFRAME</code></td>
<td WIDTH="80%">Redraw the window fully in its new position, including anything drawn on
it. </td>
</tr>
<tr>
<td><code>SWP_HIDEWINDW</code></td>
<td>Hide the window. Although it still exists, it does not appear neither on the screen
nor on the taskbar. </td>
</tr>
<tr>
<td><code>SWP_NOACTIVATE</code></td>
<td>Do not make the window active after moving it, unless of course it is already the
active window. </td>
</tr>
<tr>
<td><code>SWP_NOCOPYBITS</code></td>
<td>Do not redraw anything drawn on the window when it is moved. </td>
</tr>
<tr>
<td><code>SWP_NOMOVE</code></td>
<td>Do not move the window; i.e., ignore the <code>x</code> and <code>y</code> parameters.
</td>
</tr>
<tr>
<td><code>SWP_NOSIZE</code></td>
<td>Do not resize the window; i.e., ignore the <code>cx</code> and <code>cy</code>
parameters. </td>
</tr>
<tr>
<td><code>SWP_NOREDRAW</code></td>
<td>Do not remove the image of the window in its former position from the screen. In other
words, leave behind a ghost image of the window in its old position. </td>
</tr>
<tr>
<td><code>SWP_NOZORDER</code></td>
<td>Do not change the window's position in the Z-order; i.e., ignore the <code>hWndInsertAfter</code>
parameter. </td>
</tr>
<tr>
<td><code>SWP_SHOWWINDOW</code></td>
<td>Show the window (must have previously been hidden using <code>SWP_HIDEWINDOW</code>). </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="s.html#setwindowpos">SetWindowPos</a><br>
<a HREF="#top">返回到索引</a><a HREF="index.html">.</a> </p>
<hr ALIGN="center" WIDTH="85%" SIZE="5">
<p ALIGN="left"><a NAME="soundflags"></a></p>
<h3 ALIGN="center">Sound Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const SND_ALIAS = &H10000<br>
Const SND_ASYNC = &H1<br>
Const SND_FILENAME = &H20000<br>
Const SND_LOOP = &H8<br>
Const SND_NODEFAULT = &H2<br>
Const SND_NOSTOP = &H10<br>
Const SND_NOWAIT = &H2000<br>
Const SND_SYNC = &H0</code></td>
</tr>
</table>
</center></div>
<p>These constants tell the sndPlaySound function how to play the .wav file. You can use
more than one of them by simply adding together the ones you want to use. To use none of
them, use 0 as the value.<br>
</p>
<table WIDTH="95%" CELLSPACING="0" BORDER="2">
<tr>
<td WIDTH="20%"><code>SND_ALIAS</code></td>
<td>Play the name of a Windows sound (such as SystemStart, Asterisk, etc.) </td>
</tr>
<tr>
<td><code>SND_ASYNC</code></td>
<td>Continue program execution immediately after starting to play the sound. </td>
</tr>
<tr>
<td><code>SND_FILENAME</code></td>
<td>Play the specified filename. </td>
</tr>
<tr>
<td><code>SND_NODEFAULT</code></td>
<td>Return 0 and remain silent if the .wav file is not found. </td>
</tr>
<tr>
<td><code>SND_NOSTOP</code></td>
<td>Don't stop any currently playing sounds. </td>
</tr>
<tr>
<td><code>SND_NOWAIT</code></td>
<td>Don't wait if the sound driver is busy. </td>
</tr>
<tr>
<td><code>SND_SYNC</code></td>
<td>Wait until the sound is finished playing before continuing execution. </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="s.html#sndplaysound">sndPlaySound</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 + -