wxDC::DrawRectangle

void DrawRectangle(float x, float y, float width, float height)

Draws a rectangle with the given top left corner, and with the given size. The current pen is used for the outline and the current brush for filling the shape.