Share via


CDC::FillRgn 

BOOLFillRgn(CRgn*pRgn,CBrush*pBrush);

Return Value

Nonzero if the function is successful; otherwise 0.

Parameters

pRgn

A pointer to the region to be filled. The coordinates for the given region are specified in device units.

pBrush

Identifies the brush to be used to fill the region.

Remarks

Fills the region specified by pRgn with the brush specified by pBrush.

The brush must either be created using the CBrush member functions CreateHatchBrush, CreatePatternBrush, CreateSolidBrush, or be retrieved by GetStockObject.

Example

See the example for CRgn::CreateRoundRectRgn.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::PaintRgn, CDC::FillRect, CBrush, CRgn,