?? abortdoc.htm
字號(hào):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>AbortDoc</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor=#E2DEE9>
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16">AbortDoc</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">VB聲明</td>
</tr>
<tr>
<td width="100%" colspan="2">Declare Function AbortDoc Lib "gdi32" Alias
"AbortDoc" (ByVal hdc As Long) As Long</td>
</tr>
<tr>
<td width="100%" colspan="2">說(shuō)明</td>
</tr>
<tr>
<td width="100%" colspan="2">取消一份文檔的打印。自上次調(diào)用StartDoc函數(shù)以來(lái)的所有輸出都會(huì)被取消。如對(duì)打印機(jī)進(jìn)行了配置,令其在正式打印文檔之前先在打印緩沖區(qū)內(nèi)對(duì)文檔進(jìn)行排隊(duì),那么文檔的任何一部分都不會(huì)打印;否則,就可能出現(xiàn)文檔打印到一半被取消的情況</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Long,大于零表示成功,SP_ERROR表示失敗。會(huì)設(shè)置<a
href="GetLastError.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetLastError.htm">GetLastError</a></td>
</tr>
<tr>
<td width="100%" colspan="2">參數(shù)表</td>
</tr>
<tr>
<td width="25%">參數(shù)</td>
<td width="75%">類型及說(shuō)明</td>
</tr>
<tr>
<td width="25%">hdc</td>
<td width="75%">Long,設(shè)備場(chǎng)景的句柄</td>
</tr>
<tr>
<td width="100%" colspan="2">在VB里使用</td>
</tr>
<tr>
<td width="100%" colspan="2"><p align="left">如將這個(gè)函數(shù)用于由打印機(jī)對(duì)象的hDC屬性指定的打印機(jī)設(shè)備場(chǎng)景,那么它可以正常發(fā)揮作用。然而,倘若之后調(diào)用了EndDoc方法,卻有可能得到一條打印機(jī)出錯(cuò)消息。當(dāng)大家結(jié)合API打印函數(shù)與VB打印機(jī)方法的時(shí)候,強(qiáng)烈建議對(duì)打印機(jī)的錯(cuò)誤進(jìn)行跟蹤捕獲;或干脆避免這種結(jié)合</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="right">Top</td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -