BeginPAth()

来源:百度知道 编辑:UC知道 时间:2024/05/27 01:28:22
在BeginPath()和EndPath()之间画path,是由两个交叉区域合在一起的,默认的合成结果是把交叉区域去掉,有什么办法包含交叉区域。

掉用CDC类中的SelectClipPath( int nMode )函数 可以对区域进行操作.

CDC::SelectClipPath
BOOL SelectClipPath( int nMode );

Return Value

Nonzero if the function is successful; otherwise 0.

Parameters

nMode

Specifies the way to use the path. The following values are allowed:

RGN_AND The new clipping region includes the intersection (overlapping areas) of the current clipping region and the current path.

RGN_COPY The new clipping region is the current path.

RGN_DIFF The new clipping region includes the areas of the current clipping region, and those of the current path are excluded.

RGN_OR The new clipping region includes the union (combined areas) of the current clipping region and the current path.

RGN_XOR The new clipping region includes the union of the current clipping region and the current path, but without the overlapping areas.