wxCanvas::OnPaint

void OnPaint(void)

Sent to the canvas when the canvas must be refreshed. Derive your own class to handle this message.