网站首页  计算机词典

请输入您要查询的字词:

 

字词 setmetargn
释义 SetMetaRgn
语法:
int SetMetaRgn(
__in HDC hdc
);
SetMetaRgn功能
相交的SetMetaRgn功能为与当前metaregion指定的设备上下文当前剪辑区域和保存作为指定的设备上下文新metaregion结合地区。剪辑区域被重置为空地区。
参数
hdc [in]
一个句柄,设备上下文。
返回值
返回值指定新的剪辑区域的复杂性和可以是下列值之一。
返回codeDescription
NULLREGIONRegion是空的。
SIMPLEREGIONRegion是一个单一的矩形。
COMPLEXREGIONRegion不止一个矩形。
ERRORAn发生错误。 (以前的剪切区域不受影响。)
备注
目前的设备上下文剪辑区域的定义是其剪辑区域和metaregion交集。
该SetMetaRgn函数只应被调用后,应用程序的原始设备上下文是通过调用SaveDC功能保存。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
裁剪概述
裁剪功能
GetMetaRgn
SaveDC
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetMetaRgn Function
The SetMetaRgn function intersects the current clipping region for the specified device context with the current metaregion and saves the combined region as the new metaregion for the specified device context. The clipping region is reset to a null region.
Syntax
int SetMetaRgn(
__in HDC hdc
);
Parameters
hdc [in]
A handle to the device context.
Return Value
The return value specifies the new clipping region's complexity and can be one of the following values.
Return codeDescription
NULLREGIONRegion is empty.
SIMPLEREGIONRegion is a single rectangle.
COMPLEXREGIONRegion is more than one rectangle.
ERRORAn error occurred. (The previous clipping region is unaffected.)

Remarks
The current clipping region of a device context is defined by the intersection of its clipping region and its metaregion.
The SetMetaRgn function should only be called after an application's original device context was saved by calling the SaveDC function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Clipping Overview
Clipping Functions
GetMetaRgn
SaveDC
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145075(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:43:41