网站首页  词典首页

请输入您要查询的函数:

 

术语 startpage
释义 StartPage
语法:
int StartPage(
__in HDC hDC
);
起始页功能
在起始页功能的打印机驱动程序准备接受数据。
参数
hDC [in]
一个句柄,打印作业的设备上下文。
返回值
如果函数成功,返回值大于零。
如果函数失败,返回值小于或等于零。
备注
该系统禁用之间的起始页和末页的功能调用ResetDC功能。这意味着,您不能改变,除非在页面边界设备模式。在调用末页,您可以调用ResetDC改变设备的模式,如有必要。请注意,以ResetDC调用重置所有的设备上下文属性回默认值。
无论末页或起始页重置设备上下文属性。设备上下文属性保持不变,在随后的页面。您不必重新选择对象成立之前再次映射模式下页打印,但这样做会产生同样的结果,减少Windows版本之间的代码区别。
实例
有关示例,请参见打印文档。
要求:
最低支持: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日
==英文原文==StartPage Function
The StartPage function prepares the printer driver to accept data.
Syntax
int StartPage(
__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
The system disables the ResetDC function between calls to the StartPage and EndPage functions. This means that you cannot change the device mode except at page boundaries. After calling EndPage, you can call ResetDC to change the device mode, if necessary. 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.
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
EndPage
ResetDC
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145116(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:22:26