wxWindow::OnPaint

void OnPaint(void)

Sent to the window when the window must be refreshed. Derive your own class to handle this message. So far, only relevant to the wxCanvas class.