CRgn::GetRegionData

IntGetRegionData(LPRGNDATAlpRgnData**,intnCount)const;**

Return Value

Specifies the type of the resulting region. It can be one of the following values:

  • COMPLEXREGION   New region has overlapping borders.

  • ERROR   No new region created.

  • NULLREGION   New region is empty.

  • SIMPLEREGION   New region has no overlapping borders.

Parameters

lpRgnData

Points to a RGNDATA data structure that receives the information. If this parameter is NULL, the return value contains the number of bytes needed for the region data.

nCount

Specifies the size, in bytes, of the lpRgnData buffer.

Remarks

Fills the specified buffer with data describing the region. This data includes the dimensions of the rectangles that make up the region. This function is used in conjunction with the CRgn::CreateFromData function.

CRgn OverviewClass MembersHierarchy Chart

See Also   CRgn::CreateFromData