CODFillProperties::GetBrush

CBrush* CODFillProperties::GetBrush(CDC* pDC = NULL)

Returns a pointer to the cached GDI brush object.

Defined in: OdFillProp.cpp

Return Value

Pointer to brush object.

Comments

This function returns a brush that is created using the fill properties. The brush returned is cached in the m_pBrush member. If m_pBrush is NULL, then this function calls CreateBrush to create a new brush. NOTE: The caller should never delete the brush returned by this function.

Parameters

pDC

A pointer to the device context used to create the bitmap to be used for the fill pattern, if using the BS_PATTERN style.