网站首页  词典首页

请输入您要查询的函数:

 

术语 resetdc
释义 ResetDC
语法:
HDC ResetDC(
__in HDC hdc,
__in const DEVMODE *lpInitData
);
ResetDC功能
该ResetDC函数更新指定的打印机或绘图仪设备上下文(DC)使用指定的信息。
参数
hdc [in]
一个句柄,区进行更新。
lpInitData [in]
一个DEVMODE结构包含关于新的DC信息的指针。
返回值
如果函数成功,返回值是一个句柄原区。
如果函数失败,返回值为NULL。
备注
应用程序通常使用ResetDC功能,当窗口收到WM_DEVMODECHANGE消息。 ResetDC也可以用来改变方向的文件或文件箱,同时打印文档。
该ResetDC函数不能用于更改驱动程序的名称,设备名称,或输出端口。当用户更改端口连接或设备的名称,应用程序必须删除原来的DC和创造新的信息新DC。
应用程序可以传递一个信息区的ResetDC功能。在这种情况下,ResetDC将始终返回打印机直流。
ICM的:由参数指定的HDC直流颜色配置文件将被重置根据在DEVMODE结构lpInitData成员中所载的信息。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesResetDCW(Unicode)和ResetDCA(ANSI)的
参见
设备上下文概述
设备上下文函数
DeviceCapabilities
的DEVMODE
逃生
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ResetDC Function
The ResetDC function updates the specified printer or plotter device context (DC) using the specified information.
Syntax
HDC ResetDC(
__in HDC hdc,
__in const DEVMODE *lpInitData
);
Parameters
hdc [in]
A handle to the DC to update.
lpInitData [in]
A pointer to a DEVMODE structure containing information about the new DC.
Return Value
If the function succeeds, the return value is a handle to the original DC.
If the function fails, the return value is NULL.
Remarks
An application will typically use the ResetDC function when a window receives a WM_DEVMODECHANGE message. ResetDC can also be used to change the paper orientation or paper bins while printing a document.
The ResetDC function cannot be used to change the driver name, device name, or the output port. When the user changes the port connection or device name, the application must delete the original DC and create a new DC with the new information.
An application can pass an information DC to the ResetDC function. In that situation, ResetDC will always return a printer DC.
ICM: The color profile of the DC specified by the hdc parameter will be reset based on the information contained in the lpInitData member of the DEVMODE structure.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesResetDCW (Unicode) and ResetDCA (ANSI)
See Also
Device Contexts Overview
Device Context Functions
DeviceCapabilities
DEVMODE
Escape
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162925(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:20:24