网站首页  词典首页

请输入您要查询的函数:

 

术语 combinergn
释义 CombineRgn
语法:
int CombineRgn(
__in HRGN hrgnDest,
__in HRGN hrgnSrc1,
__in HRGN hrgnSrc2,
__in int fnCombineMode
);
CombineRgn函数
CombineRgn功能结合起来的两个区域并存储在第三个区域的结果。这两个地区都结合根据指定的模式。
参数
hrgnDest [in]
一个句柄,与其他地区相结合的两个方面的新的区域定义。 (该地区之前必须有CombineRgn被调用。)
hrgnSrc1 [in]
句柄的两个地区第一个被合并。
hrgnSrc2 [in]
一个句柄,第二两个区域的结合起来。
fnCombineMode [in]
A模式说明如何两个地区将被合并。此参数可以是下列值之一。
ValueMeaning
RGN_ANDCreates两个联合区域的交集。
RGN_COPYCreates一个由hrgnSrc1确定的区域的副本。
RGN_DIFFCombines的部分hrgnSrc1不属于hrgnSrc2的一部分。
RGN_ORCreates两个地区联合工会。
RGN_XORCreates除有任何重叠地区的两个地区联合工会。
返回值
返回值指定所产生的区域类型。它可以是下列值之一。
返回codeDescription
NULLREGIONThe区域是空的。
SIMPLEREGIONThe地区是一个矩形。
COMPLEXREGIONThe地区是一个以上的矩形更多。
ERRORNo地区创建。
备注
这三个地区不必明显。例如,hrgnSrc1参数可以等于hrgnDest参数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
地区概况
区域函数
CreateEllipticRgn
CreateEllipticRgnIndirect
CreatePolygonRgn
CreatePolyPolygonRgn
CreateRectRgn
CreateRectRgnIndirect
CreateRoundRectRgn
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CombineRgn Function
The CombineRgn function combines two regions and stores the result in a third region. The two regions are combined according to the specified mode.
Syntax
int CombineRgn(
__in HRGN hrgnDest,
__in HRGN hrgnSrc1,
__in HRGN hrgnSrc2,
__in int fnCombineMode
);
Parameters
hrgnDest [in]
A handle to a new region with dimensions defined by combining two other regions. (This region must exist before CombineRgn is called.)
hrgnSrc1 [in]
A handle to the first of two regions to be combined.
hrgnSrc2 [in]
A handle to the second of two regions to be combined.
fnCombineMode [in]
A mode indicating how the two regions will be combined. This parameter can be one of the following values.
ValueMeaning
RGN_ANDCreates the intersection of the two combined regions.
RGN_COPYCreates a copy of the region identified by hrgnSrc1.
RGN_DIFFCombines the parts of hrgnSrc1 that are not part of hrgnSrc2.
RGN_ORCreates the union of two combined regions.
RGN_XORCreates the union of two combined regions except for any overlapping areas.

Return Value
The return value specifies the type of the resulting region. It can be one of the following values.
Return codeDescription
NULLREGIONThe region is empty.
SIMPLEREGIONThe region is a single rectangle.
COMPLEXREGIONThe region is more than a single rectangle.
ERRORNo region is created.

Remarks
The three regions need not be distinct. For example, the hrgnSrc1 parameter can equal the hrgnDest parameter.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Regions Overview
Region Functions
CreateEllipticRgn
CreateEllipticRgnIndirect
CreatePolygonRgn
CreatePolyPolygonRgn
CreateRectRgn
CreateRectRgnIndirect
CreateRoundRectRgn
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183465(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:27:11