wxDC::DrawRoundedRectangle

void DrawRoundedRectangle(float x, float y, float width, float height, float radius = 20)

Draws a rectangle with the given top left corner, and with the given size. The corners are quarter-circles using the given radius. The current pen is used for the outline and the current brush for filling the shape.