网站首页  词典首页

请输入您要查询的函数:

 

术语 printdlgex
释义 PrintDlgEx
语法:
HRESULT PrintDlgEx( LPPRINTDLGEX lppd
);
PrintDlgEx函数
显示一个打印属性表,使用户可以指定特定打印作业的属性。阿Print属性表有一个常规页面,它包含控制类似的打印对话框。在属性表也可以有额外的应用程序特定的驱动程序特定的属性页,以及常规页。
参数
lppd
[中,out]指向1 PRINTDLGEX结构,它包含用于初始化属性表信息。当PrintDlgEx回报率,这种结构包含有关用户的选择信息。
返回值
If the function succeeds, the return value is S_OK and the dwResultAction member of the PRINTDLGEX structure contains one of the following values.
ValueMeaning
PD_RESULT_APPLYThe用户点击应用按钮,后来点击取消按钮。这表明,用户要申请在属性表中所作的更改,但还没有要打印。该PRINTDLGEX结构包含由当时的应用按钮,用户点击指定的信息。
PD_RESULT_CANCELThe用户单击取消按钮。在PRINTDLGEX结构的信息不变。
PD_RESULT_PRINTThe用户点击打印按钮。该PRINTDLGEX结构包含用户指定的资料。
如果函数失败,返回值可能是下面的COM错误代码之一。有关更多信息,请参阅错误处理。
E_OUTOFMEMORYInsufficient内存。
E_INVALIDARGOne或多个参数是无效的。
E_POINTERInvalid指针。
E_HANDLEInvalid处理。
E_FAILUnspecified错误。
备注
请注意,hDevMode和PRINTDLGEX hDevNames的值可能会发生变化时,他们进入PrintDlgEx通过。这是因为这些成员对输入和输出填补。
已知问题在Windows XP / Vista中/视窗7:如果PD_RETURNDC设置标志,但PD_USEDEVMODECOPIESANDCOLLATE未设置上,PrintDlg和PrintDlgEx函数返回不正确的副本数目。要得到正确的副本数量,确保调用应用程序始终使用PD_USEDEVMODECOPIESANDCOLLATE与PD_RETURNDC。
有关更多信息,请参阅打印属性表。
例如
有关示例,请参阅使用打印属性表。
功能信息
最低DLL版本 comdlg32.dll
在Commdlg.h HeaderDeclared,头文件:winuser.h
import libraryComdlg32.lib
2000年最低经营systemsWindows
UnicodeImplemented为ANSI和Unicode版本。
参见
通用对话框库概况,CreatePropertySheetPage中,printDlg,PRINTDLGEX
==英文原文==PrintDlgEx Function
Displays a Print property sheet that enables the user to specify the properties of a particular print job. A Print property sheet has a General page that contains controls similar to the Print dialog box. The property sheet can also have additional application-specific and driver-specific property pages as well as the General page.
Syntax
HRESULT PrintDlgEx( LPPRINTDLGEX lppd
);
Parameters
lppd
[in, out] Pointer to a PRINTDLGEX structure that contains information used to initialize the property sheet. When PrintDlgEx returns, this structure contains information about the user's selections.
Return Value
If the function succeeds, the return value is S_OK and the dwResultAction member of the PRINTDLGEX structure contains one of the following values.
ValueMeaning
PD_RESULT_APPLYThe user clicked the Apply button and later clicked the Cancel button. This indicates that the user wants to apply the changes made in the property sheet, but does not yet want to print. The PRINTDLGEX structure contains the information specified by the user at the time the Apply button was clicked.
PD_RESULT_CANCELThe user clicked the Cancel button. The information in the PRINTDLGEX structure is unchanged.
PD_RESULT_PRINTThe user clicked the Print button. The PRINTDLGEX structure contains the information specified by the user.
If the function fails, the return value may be one of the following COM error codes. For more information, see Error Handling .
E_OUTOFMEMORYInsufficient memory.
E_INVALIDARGOne or more arguments are invalid.
E_POINTERInvalid pointer.
E_HANDLEInvalid handle.
E_FAILUnspecified error.
Remarks
Note that the values of hDevMode and hDevNames in PRINTDLGEX may change when they are passed into PrintDlgEx. This is because these members are filled on both input and output.
Known issue on Windows XP/Vista/Windows 7: If PD_RETURNDC is set but PD_USEDEVMODECOPIESANDCOLLATE flag is not set, the PrintDlg and PrintDlgEx functions return incorrect number of copies. To get the correct number of copies, ensure that the calling application always uses PD_USEDEVMODECOPIESANDCOLLATE with PD_RETURNDC.
For more information, see Print Property Sheet .
Example
For an example, see Using the Print Property Sheet .
Function Information
Minimum DLL Versioncomdlg32.dll
HeaderDeclared in Commdlg.h, include Windows.h
Import libraryComdlg32.lib
Minimum operating systemsWindows 2000
UnicodeImplemented as ANSI and Unicode versions.
See Also
Common Dialog Box Library Overview , CreatePropertySheetPage , PrintDlg , PRINTDLGEX
==原始网址==http://msdn.microsoft.com/en-us/library/ms646942(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:55