PrinterMessageBox

此頁沒有內(nèi)容條目
內(nèi)容

PrinterMessageBox

VB聲明

Declare Function PrinterMessageBox Lib "winspool.drv" Alias "PrinterMessageBoxA" (ByVal hPrinter As Long, ByVal error As Long, ByVal hwnd As Long, ByVal pText As String, ByVal pCaption As String, ByVal dwType As Long) As Long

說明

在擁有指定打印作業(yè)的系統(tǒng)上顯示一個打印機出錯消息框。如一名用戶在遠程登錄,這種做法便相當(dāng)有用

返回值

Long,IDOK, IDRETRY 或 IDCANCEL;由用戶的輸入決定(如消息框在遠程系統(tǒng)顯示,則肯定是IDOK)

參數(shù)表

參數(shù)

類型及說明

hPrinter

Long,出現(xiàn)錯誤的打印機的句柄

error

Long,ERROR_OUT_OF_PAPER(缺紙)或ERROR_NOT_READY(未就緒)

hwnd

Long,指定消息框的父窗口。可以為NULL

pText

Long,欲顯示的消息正文

pCaption

Long,消息框的標(biāo)題

dwType

Long,指定任何一個標(biāo)準(zhǔn)的MessageBox標(biāo)志。建議使用MB_ICONSTOP 或 MB_RETRYCANCEL 或 MB_SETFOREGROUND

適用平臺

Windows NT

Top