勇芳软件工作室.汉化:  Clipping > Clipping Functions >

IntersectClipRect

Previous pageReturn to chapter overviewNext page

描述

 

IntersectClipRect函数从当前裁剪区域和指定矩形的交点创建一个新的裁剪区域。

 

C++ 语法

 

int IntersectClipRect(

__in HDC hdc,

__in int nLeftRect,

__in int nTopRect,

__in int nRightRect,

__in int nBottomRect

);

 

PowerBASIC 语法

 

FUNCTION IntersectClipRect ( _

BYVAL hdc AS DWORD, _

BYVAL nLeftRect AS LONG, _

BYVAL nTopRect AS LONG, _

BYVAL nRightRect AS LONG, _

BYVAL nBottomRect AS LONG _

) AS LONG

 

参数

 

hdc

 

[in]处理设备上下文。

 

nLeftRect

 

[in]指定矩形左上角的x坐标(以逻辑为单位)。

 

nTopRect

 

[in]指定矩形左上角的y坐标(以逻辑为单位)。

 

nRightRect

 

[in]指定矩形右下角的x坐标(以逻辑为单位)。

 

nBottomRect

 

[in]指定矩形右下角的y坐标(以逻辑为单位)。

 

返回值

 

返回值指定新剪裁区域的类型,可以是以下值之一。

 

NULLREGION

区域是空的

SIMPLEREGION

区域是单个矩形。

COMPLEXREGION

区域是多个矩形。

ERROR

发生错误(当前的剪辑区域不受影响。)

 

备注

 

指定矩形的下边缘和右边缘不会从裁剪区域中排除。

 

引用文件 #INCLUDE Once

 

WinGdi.inc(包括Windows.inc)