网站首页  词典首页

请输入您要查询的函数:

 

术语 endpage
释义 EndPage
语法:
int EndPage(
__in HDC hdc
);
末页功能
在末页函数通知应用程序已经写完的网页设备。此功能通常用于设备驱动程序直接推进到一个新的一页。
参数
hdc [in]
一个句柄,打印作业的设备上下文。
返回值
如果函数成功,返回值大于零。
如果函数失败,返回值小于或等于零。
备注
使用ResetDC函数更改设备的模式,如有必要,在调用末页的功能。请注意,以ResetDC调用重置所有的设备上下文属性回默认值。无论末页或起始页重置设备上下文属性。设备上下文属性保持不变,在随后的页面。您不必重新选择对象成立之前再次映射模式下页打印,但这样做会产生同样的结果,减少Windows版本之间的代码区别。
当在后台文件页面超过大约350 MB的,它可能无法打印,而不是发出错误信息。例如,这在打印时可能会发生大的EMF文件。页面大小限制取决于包括可用虚拟内存量的因素很多,由调用程序分配的内存量,以及碎片的数量在这个过程中堆。
实例
有关示例,请参见打印文档。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
ResetDC
起始页
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EndPage Function
The EndPage function notifies the device that the application has finished writing to a page. This function is typically used to direct the device driver to advance to a new page.
Syntax
int EndPage(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the device context for the print job.
Return Value
If the function succeeds, the return value is greater than zero.
If the function fails, the return value is less than or equal to zero.
Remarks
Use the ResetDC function to change the device mode, if necessary, after calling the EndPage function. Note that a call to ResetDC resets all device context attributes back to default values. Neither EndPage or StartPage resets the device context attributes. Device context attributes remain constant across subsequent pages. You do not need to re-select objects and set up the mapping mode again before printing the next page; however, doing so will produce the same results and reduce code differences between versions of Windows.
When a page in a spooled file exceeds approximately 350 MB, it may fail to print and not send an error message. For example, this can occur when printing large EMF files. The page size limit depends on many factors including the amount of virtual memory available, the amount of memory allocated by calling processes, and the amount of fragmentation in the process heap.
Examples
For an example, see Printing a Document .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
ResetDC
StartPage
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162596(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 11:24:02