wxCanvas::GetDC

wxCanvasDC * GetDC(void)

Get a pointer to the canvas's device context. See wxDC and wxCanvasDC.