wxDC::DrawLine

void DrawLine(float x1, float y1, float x2, float y2)

Draws a line from the first point to the second. The current pen is used for drawing the line.