当前位置:首页 科普知识 PrinterMessageBox

PrinterMessageBox

发布时间:2023-09-14 17:57:45

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

PrinterMessageBox介绍

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

PrinterMessageBox

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)

参数表

PrinterMessageBox

参数 类型及说明

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

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

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

pText Long,欲显示的消息正文

PrinterMessageBox

pCaption Long,消息框的标题

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

适用平台

Windows NT

温馨提示:
本文【PrinterMessageBox】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6