RoundRect

  BOOL RoundRect(hdc, X1, Y1, X2, Y2, X3, Y3)    
  HDC hdc;    
  int X1;    
  int Y1;    
  int X2;    
  int Y2;    
  int X3;    
  int Y3;    

The RoundRect function draws a rectangle with rounded corners. The interior of the rectangle is filled with the current brush, and a border is drawn with the current pen.

Parameters

hdc

Identifies the device context.

X1

Specifies the logical x-coordinate of the upper-left corner of the rectangle.

Y1

Specifies the logical y-coordinate of the upper-left corner of the rectangle.

X2

Specifies the logical x-coordinate of the lower-right corner of the rectangle.

Y2

Specifies the logical y-coordinate of the lower-right corner of the rectangle.

X3

Specifies the width of the ellipse used to draw the rounded corners.

Y3

Specifies the height of the ellipse used to draw the rounded corners.

Return Value

The return value is TRUE if the rectangle is drawn. Otherwise, it is FALSE.

Comments

The current position is neither used nor updated by this function.

See Also

Rectangle