int CombineRgn( CRgn* pRgn1, CRgn* pRgn2, int nCombineMode );
Return Value
Specifies the type of the resulting region. It can be one of the following values:
Parameters
pRgn1
Identifies an existing region.
pRgn2
Identifies an existing region.
nCombineMode
Specifies the operation to be performed when combining the two source regions. It can be any one of the following values:
Remarks
Creates a new GDI region by combining two existing regions. The regions are combined as specified by nCombineMode.
The two specified regions are combined, and the resulting region handle is stored in the CRgn object. Thus, whatever region is stored in the CRgn object is replaced by the combined region.
The size of a region is limited to 32,767 by 32,767 logical units or 64K of memory, whichever is smaller.
Use CopyRgn to simply copy one region into another region.
CRgn Overview | Class Members | Hierarchy Chart
See Also CRgn::CopyRgn, ::CombineRgn