网站首页  词典首页

请输入您要查询的函数:

 

术语 selectclippath
释义 SelectClipPath
语法:
BOOL SelectClipPath(
__in HDC hdc,
__in int iMode
);
SelectClipPath功能
该SelectClipPath功能选择,作为一个设备上下文剪辑区域当前的路径,结合现有的任何剪辑使用指定的模式地区新区域。
参数
hdc [in]
一个句柄,路径的设备上下文。
iMode的 [in]
该方法使用路径。此参数可以是下列值之一。
ValueMeaning
RGN_ANDThe新的裁剪区域包括交叉(重叠)目前剪辑区域和当前路径。
RGN_COPYThe新的剪辑区域是当前的路径。
RGN_DIFFThe新的裁剪区域包括目前与当前排除路径的剪辑区域的领域。
RGN_ORThe新的裁剪区域,包括工会(综合区)目前的剪辑区域和当前路径。
RGN_XORThe新的裁剪区域包括目前的剪辑区域工会和目前的路径,但没有重叠的领域。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
GetLastError函数可能会返回下列错误代码之一:
ERROR_CAN_NOT_COMPLETE
ERROR_INVALID_PARAMETER
ERROR_NOT_ENOUGH_MEMORY
备注
该设备的范畴内确定的HDC参数必须包含一个封闭的道路。
实例
有关示例,请参阅使用剪辑。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
裁剪概述
裁剪功能
BeginPath
EndPath
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SelectClipPath Function
The SelectClipPath function selects the current path as a clipping region for a device context, combining the new region with any existing clipping region using the specified mode.
Syntax
BOOL SelectClipPath(
__in HDC hdc,
__in int iMode
);
Parameters
hdc [in]
A handle to the device context of the path.
iMode [in]
The way to use the path. This parameter can be one of the following values.
ValueMeaning
RGN_ANDThe new clipping region includes the intersection (overlapping areas) of the current clipping region and the current path.
RGN_COPYThe new clipping region is the current path.
RGN_DIFFThe new clipping region includes the areas of the current clipping region with those of the current path excluded.
RGN_ORThe new clipping region includes the union (combined areas) of the current clipping region and the current path.
RGN_XORThe new clipping region includes the union of the current clipping region and the current path but without the overlapping areas.

Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
GetLastError may return one of the following error codes:
ERROR_CAN_NOT_COMPLETE
ERROR_INVALID_PARAMETER
ERROR_NOT_ENOUGH_MEMORY
Remarks
The device context identified by the hdc parameter must contain a closed path.
Examples
For an example, see Using Clipping .
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
BeginPath
EndPath
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162954(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:26:35