?? appb.html
字號(hào):
<!DOCTYPE html PUBLIC "-//Netscape Comm. Corp.//DTD HTML//EN">
<html>
<head>
<title>Windows 95 API Dictionary: Appendix B: Constants</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 B: Constants -</h1>
<hr ALIGN="center" WIDTH="85%" SIZE="5">
<p ALIGN="left"><a NAME="blt"></a></p>
<h3 ALIGN="center">Blt Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const SRCAND = &H8800C6<br>
Const SRCCOPY = &HCC0020<br>
Const SRCERASE = &H440328<br>
Const SRCINVERT = &H660046<br>
Const SRCPAINT = &HEE0086</code></td>
</tr>
</table>
</center></div>
<p>The Blt flags tell what method to use when transfering the graphic chunk from the souce
object to the target object. Unlike the flags in other function, you must use one and only
one constant for <code>dwRop</code>. The ANDs, ORs, etc. are binary operations done on a
pixel-by-pixel level with the colors in the chunk and target.<br>
</p>
<table WIDTH="95%" CELLSPACING="0" BORDER="2">
<tr>
<td WIDTH="20%"><code>SRCAND</code></td>
<td WIDTH="80%">destination = chunk AND destination </td>
</tr>
<tr>
<td><code>SRCCOPY</code></td>
<td>destination = chunk </td>
</tr>
<tr>
<td><code>SRCERASE</code></td>
<td>destination = chunk AND (NOT destination) </td>
</tr>
<tr>
<td><code>SRCINVERT</code></td>
<td>destination = chunk XOR destination </td>
</tr>
<tr>
<td><code>SRCPAINT</code></td>
<td>destination = chunk OR destination </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="b.html#bitblt">BitBlt</a>, <a HREF="s.html#stretchblt">StretchBlt</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="colordialog"></a></p>
<h3 ALIGN="center">Color Dialog Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td>Const CC_RGBINIT = &H1<br>
Const CC_FULLOPEN = &H2<br>
Const CC_PREVENTFULLOPEN = &H4<br>
Const CC_SHOWHELP = &H8<br>
Const CC_SOLIDCOLOR = &H80<br>
Const CC_ANYCOLOR = &H100</td>
</tr>
</table>
</center></div>
<p>The color dialog constants tell Windows how to render the choose color dialog box. You
can use more than one of the flags by adding them together, but you cannot use
contradicting flags (such as CC_FULLOPEN and CC_PREVENTFULLOPEN).<br>
</p>
<table WIDTH="95%" BORDER="2" CELLSPACING="0">
<tr>
<td WIDTH="20%"><code>CC_RGBINIT</code></td>
<td WIDTH="80%">Make the color specified by the <code>rgbResult</code> property already
selected in the box. </td>
</tr>
<tr>
<td><code>CC_FULLOPEN</code></td>
<td>Automatically display the Define Custom Colors half of the dialog box. </td>
</tr>
<tr>
<td><code>CC_PREVENTFULLOPEN</code></td>
<td>Disable the button that opens the Define Custom Colors half of the dialog box. </td>
</tr>
<tr>
<td><code>CC_SHOWHELP</code></td>
<td>Displays the Help button. Unfortunately, I do not yet know how to make the button do
anything when clicked. </td>
</tr>
<tr>
<td><code>CC_SOLIDCOLOR</code></td>
<td>Return the solid-color equivalent of the selected color (applies to color depths 256
and below). </td>
</tr>
<tr>
<td><code>CC_ANYCOLOR</code></td>
<td>Return the textured-color equivalent of the selected color if it is not solid (applies
to color depths 256 and below). </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="c.html#choosecolor">ChooseColor</a> (used through <a
HREF="appa.html#choosecolors">CHOOSECOLORS</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="drivetypeconstants"></a></p>
<h3 ALIGN="center">Drive Type Constants</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const DRIVE_REMOVABLE = 2<br>
Const DRIVE_FIXED = 3<br>
Const DRIVE_REMOTE = 4<br>
Const DRIVE_CDROM = 5<br>
Const DRIVE_RAMDISK = 6</code></td>
</tr>
</table>
</center></div>
<p>The drive type constants identify the type of a drive on the computer. This could be a
floppy drive, a hard drive, a CD-ROM drive, etc. A value containing the type of drive can
hold only one value, since a drive can't be two things at once.<br>
</p>
<table WIDTH="95%" BORDER="2" CELLSPACING="0">
<tr>
<td WIDTH="20%"><code>DRIVE_REMOVABLE</code></td>
<td WIDTH="80%">A floppy drive or some other form of removable readable/writable disk
drive. </td>
</tr>
<tr>
<td><code>DRIVE_FIXED</code></td>
<td>A hard drive. </td>
</tr>
<tr>
<td><code>DRIVE_REMOTE</code></td>
<td>A network drive; i.e., a drive somewhere on the network server. </td>
</tr>
<tr>
<td><code>DRIVE_CDROM</code></td>
<td>A CD-ROM drive. </td>
</tr>
<tr>
<td><code>DRIVE_RAMDISK</code></td>
<td>A RAM drive. </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="g.html#getdrivetype">GetDriveType</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="exitwindows"></a></p>
<h3 ALIGN="center">Exit Windows Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const EWX_LOGOFF = 0<br>
Const EWX_SHUTDOWN = 1<br>
Const EWX_REBOOT = 2<br>
Const EWX_FORCE = 4</code></td>
</tr>
</table>
</center></div>
<p>The Exit Windows flags tell how to shut down or reboot Windows 95. You must use exactly
one of them.<br>
</p>
<table WIDTH="95%" BORDER="2" CELLSPACING="0">
<tr>
<td WIDTH="20%"><code>EWX_LOGOFF</code></td>
<td WIDTH="80%">Log off on a networked computer, or else does the same as <code>EWX_REBOOT</code>.
</td>
</tr>
<tr>
<td><code>EWX_SHUTDOWN</code></td>
<td>Shuts down the computer and, if the computer supports it, powers down. </td>
</tr>
<tr>
<td><code>EWX_REBOOT</code></td>
<td>Does a full reboot of Windows 95. </td>
</tr>
<tr>
<td><code>EWX_FORCE</code></td>
<td>Appears to empty the tray (the little icons next to the clock on the toolbar). (?) </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="e.html#exitwindowsex">ExitWindowsEx</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="fileattributeflags"></a></p>
<h3 ALIGN="center">File Attribute Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const FILE_ATTRIBUTE_ARCHIVE = &H20<br>
Const FILE_ATTRIBUTE_COMPRESSED = &H800<br>
Const FILE_ATTRIBUTE_DIRECTORY = &H10<br>
Const FILE_ATTRIBUTE_HIDDEN = &H2<br>
Const FILE_ATTRIBUTE_NORMAL = &H80<br>
Const FILE_ATTRIBUTE_READONLY = &H1<br>
Const FILE_ATTRIBUTE_SYSTEM = &H4</code></td>
</tr>
</table>
</center></div>
<p>The file attribute flags determine the attributes of a file or directory. Any
combination of them may be used except one: FILE_ATTRIBUTE_NORMAL, which identifies files
with no attributes, can only be used alone.<br>
</p>
<table WIDTH="95%" BORDER="2" CELLSPACING="0">
<tr>
<td WIDTH="20%"><code>FILE_ATTRIBUTE_ARCHIVE</code></td>
<td WIDTH="80%">An archive file, which almost all files are. </td>
</tr>
<tr>
<td><code>FILE_ATTRIBUTE_COMPRESSED</code></td>
<td>A compressed file residing in a compressed drive or directory. </td>
</tr>
<tr>
<td><code>FILE_ATTRIBUTE_DIRECTORY</code></td>
<td>A directory instead of a file. </td>
</tr>
<tr>
<td><code>FILE_ATTRIBUTE_HIDDEN</code></td>
<td>A hidden file, which is not normally visible to the user. </td>
</tr>
<tr>
<td><code>FILE_ATTRIBUTE_NORMAL</code></td>
<td>An attribute-less file. </td>
</tr>
<tr>
<td><code>FILE_ATTRIBUTE_READONLY</code></td>
<td>A read-only file, which cannot normally be written to or deleted, only read from. </td>
</tr>
<tr>
<td><code>FILE_ATTRIBUTE_SYSTEM</code></td>
<td>A system file, one used exclusively by the operating system. </td>
</tr>
</table>
<b>
<p>Used by:</b> <a HREF="g.html#getfileattributes">GetFileAttributes</a>, <a
HREF="s.html#setfileattributes">SetFileAttributes</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="filedialog"></a></p>
<h3 ALIGN="center">File Dialog Flags</h3>
<div align="center"><center>
<table WIDTH="50%">
<tr>
<td><code>Const OFN_READONLY = &H1<br>
Const OFN_OVERWRITEPROMPT = &H2<br>
Const OFN_HIDEREADONLY = &H4<br>
Const OFN_NOCHANGEDIR = &H8<br>
Const OFN_SHOWHELP = &H10<br>
Const OFN_NOVALIDATE = &H100<br>
Const OFN_ALLOWMULTISELECT = &H200<br>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -