wxDC::SetBrush

void SetBrush(wxBrush *brush)

Sets the current brush for the DC. The brush is not copied, so you should not delete the brush unless the DC pen has been set to another brush, or to NULL. Note that all pens and brushes are automatically deleted when the program is exited.

See also wxBrush.