Ellipse

  BOOL Ellipse(hdc, nLeftRect, nTopRect, nRightRect, nBottomRect)    
  HDC hdc; /* device-context handle */
  int nLeftRect; /* x-coordinate upper-left corner bounding rectangle */
  int nTopRect; /* y-coordinate upper-left corner bounding rectangle */
  int nRightRect; /* x-coordinate lower-right corner bounding rectangle */
  int nBottomRect; /* y-coordinate lower-right corner bounding rectangle */

The Ellipse function draws an ellipse. The center of the ellipse is the center of the bounding rectangle specified by the nLeftRect, nTopRect, nRightRect, and nBottomRect parameters. The ellipse is drawn with the current pen and its interior is filled with the current brush.

If either the width or the height of the bounding rectangle is zero, no ellipse is drawn.

Parameters

hdc

Identifies the device context.

nLeftRect

Specifies the x-coordinate of the upper-left corner of the bounding rectangle (in logical units).

nTopRect

Specifies the y-coordinate of the upper-left corner of the bounding rectangle (in logical units).

nRightRect

Specifies the x-coordinate of the lower-right corner of the bounding rectangle (in logical units).

nBottomRect

Specifies the y-coordinate of the lower-right corner of the bounding rectangle (in logical units).

Return Value

The return value is TRUE if the ellipse is drawn, otherwise it is FALSE.

Comments

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