网站首页  词典首页

请输入您要查询的函数:

 

术语 extselectcliprgn
释义 ExtSelectClipRgn
语法:
int ExtSelectClipRgn(
__in HDC hdc,
__in HRGN hrgn,
__in int fnMode
);
ExtSelectClipRgn功能
该ExtSelectClipRgn功能结合起来,与当前剪贴使用指定的状态地区指定的区域。
参数
hdc [in]
一个句柄,设备上下文。
hrgn [in]
阿处理该地区被选中。这种处理只能空当RGN_COPY模式是指定的。
fnMode [in]
在要执行的操作。它必须是下列值之一。
ValueMeaning
RGN_ANDThe新的裁剪区域结合当前剪贴区域的重叠领域和hrgn确定的地区。
RGN_COPYThe新的剪辑区域是由hrgn确定的区域的副本。这是相同的SelectClipRgn。如果hrgn确定的地区是NULL,则新的剪辑区域是默认的剪辑区域(默认剪辑区域为空地区)。
RGN_DIFFThe新的裁剪区域结合目前对由hrgn确定的区域之外的地区剪辑区域的领域。
RGN_ORThe新的裁剪区域结合当前剪辑区域和hrgn确定的地区。
RGN_XORThe新的裁剪区域结合当前剪辑区域和hrgn确定的区域,但不包括任何重叠的领域。
返回值
返回值指定新的剪辑区域的复杂性,它可以是下列值之一。
返回codeDescription
NULLREGIONRegion是空的。
SIMPLEREGIONRegion是一个单一的矩形。
COMPLEXREGIONRegion不止一个矩形。
ERRORAn发生错误。
备注
如果发生错误时,此函数被调用时,以前为指定设备上下文剪辑区域不受影响。
该ExtSelectClipRgn函数假定为指定区域坐标设备单位指定。
只有一个由hrgn参数标识的使用区域的副本。该地区本身可以重复使用这个电话后,也可以删除。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
裁剪概述
裁剪功能
SelectClipRgn
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ExtSelectClipRgn Function
The ExtSelectClipRgn function combines the specified region with the current clipping region using the specified mode.
Syntax
int ExtSelectClipRgn(
__in HDC hdc,
__in HRGN hrgn,
__in int fnMode
);
Parameters
hdc [in]
A handle to the device context.
hrgn [in]
A handle to the region to be selected. This handle can only be NULL when the RGN_COPY mode is specified.
fnMode [in]
The operation to be performed. It must be one of the following values.
ValueMeaning
RGN_ANDThe new clipping region combines the overlapping areas of the current clipping region and the region identified by hrgn.
RGN_COPYThe new clipping region is a copy of the region identified by hrgn. This is identical to SelectClipRgn . If the region identified by hrgn is NULL, the new clipping region is the default clipping region (the default clipping region is a null region).
RGN_DIFFThe new clipping region combines the areas of the current clipping region with those areas excluded from the region identified by hrgn.
RGN_ORThe new clipping region combines the current clipping region and the region identified by hrgn.
RGN_XORThe new clipping region combines the current clipping region and the region identified by hrgn but excludes any overlapping areas.

Return Value
The return value specifies the new clipping region's complexity; it 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.

Remarks
If an error occurs when this function is called, the previous clipping region for the specified device context is not affected.
The ExtSelectClipRgn function assumes that the coordinates for the specified region are specified in device units.
Only a copy of the region identified by the hrgn parameter is used. The region itself can be reused after this call or it can be deleted.
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
SelectClipRgn
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162712(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:28:23