所有栏目

PrinterMessageBox

作者:爱百科

PrinterMessageBox,参数类型有hPrinter Long等,适用Windows NT平台。

PrinterMessageBox介绍

PrinterMessageBox,参数类型有hPrinter Long等,适用Windows NT平台。

PrinterMessageBox定义

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

PrinterMessageBox参数说明

在拥有指定打印作业的系统上显示一个打印机出错消息框。如一名用户在远程登录,这种做法便相当有用

返回值

Long,IDOK, IDRETRY 或 IDCANCEL;由用户的输入决定(如消息框在远程系统显示,则肯定是IDOK)

参数表

参数 类型及说明

hPrinter Long,出现错误的打印机的句柄

error Long,ERROR_OUT_OF_PAPER(缺纸)或ERROR_NOT_READY(未就绪)

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

pText Long,欲显示的消息正文

pCaption Long,消息框的标题

dwType Long,指定任何一个标准的MessageBox标志。建议使用MB_IConSTOP 或 MB_RETRYCANCEL 或 MB_SETFOREGROUND

适用平台

Windows NT

热点导航
教育资讯 知道问答 公考资讯 司法考试 建筑知识 工作范文 大学排名 报考专业 学习方法 句子美文 秒知回答 作业解答 精选答案 知途问学