wxCanvas::SetBrush

void SetBrush(wxBrush *brush)

Sets the current brush for the canvas. The brush is not copied, so you should not delete the brush unless the canvas 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.