CDC::FillRgn

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

BOOL FillRgn(
   CRgn* pRgn,
   CBrush* pBrush 
);

Параметры

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

  • pBrush
    Identifies the brush to be used to fill the region.

Возвращаемое значение

Nonzero if the function is successful; otherwise 0.

Заметки

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

Пример

See the example for CRgn::CreateRoundRectRgn.

Требования

Header: afxwin.h

См. также

Основные понятия

CDC Class

CDC Members

Hierarchy Chart

CDC::PaintRgn

CDC::FillRect

CBrush Class

CRgn Class

FillRgn