CBrush::CreateHatchBrush

BOOL CreateHatchBrush( int nIndex, COLORREF crColor );

Return Value

Nonzero if successful; otherwise 0.

Parameters

nIndex

Specifies the hatch style of the brush. It can be any one of the following values:

crColor

Specifies the foreground color of the brush as an RGB color (the color of the hatches). See COLORREF in the Win32 SDK documentation for more information.

Remarks

Initializes a brush with the specified hatched pattern and color. The brush can subsequently be selected as the current brush for any device context.

CBrush OverviewClass MembersHierarchy Chart

See Also   CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CBrush::CreatePatternBrush, CBrush::CreateSolidBrush, CGdiObject::CreateStockObject, ::CreateHatchBrush