网站首页  词典首页

请输入您要查询的函数:

 

术语 restoredc
释义 RestoreDC
语法:
BOOL RestoreDC(
__in HDC hdc,
__in int nSavedDC
);
RestoreDC功能
该RestoreDC功能恢复设备上下文(DC)到指定的状态。直流恢复,突然出现过一个堆栈,刚才调用SaveDC函数创建状态信息。
参数
hdc [in]
句柄到DC。
nSavedDC [in]
保存的状态得到恢复。如果此参数是积极的,nSavedDC代表国家的特定实例恢复。如果此参数为负,nSavedDC代表一个实例相对于当前的状态。例如,-1恢复最近保存的状态。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该堆栈可以包含的多个实例的DC的状态信息。如果指定的参数指定的状态不是在堆栈的顶部,RestoreDC删除所有与堆栈和指定的实例顶端状态信息。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
设备上下文概述
设备上下文函数
SaveDC
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==RestoreDC Function
The RestoreDC function restores a device context (DC) to the specified state. The DC is restored by popping state information off a stack created by earlier calls to the SaveDC function.
Syntax
BOOL RestoreDC(
__in HDC hdc,
__in int nSavedDC
);
Parameters
hdc [in]
A handle to the DC.
nSavedDC [in]
The saved state to be restored. If this parameter is positive, nSavedDC represents a specific instance of the state to be restored. If this parameter is negative, nSavedDC represents an instance relative to the current state. For example, -1 restores the most recently saved state.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The stack can contain the state information for several instances of the DC. If the state specified by the specified parameter is not at the top of the stack, RestoreDC deletes all state information between the top of the stack and the specified instance.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Device Contexts Overview
Device Context Functions
SaveDC
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162929(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:23:13