CreateEllipticRgnIndirect

  HRGN CreateEllipticRgnIndirect(lprc)    
  CONST RECT *lprc; /* the address of a bounding rectangle */

The CreateEllipticRgnIndirect function creates an elliptical region.

Parameters

lprc

Points to a RECT structure that contains the coordinates of the upper-left and lower-right corners of the bounding rectangle of the ellipse.

Return Value

The return value identifies a new region if the function is successful. Otherwise, it is NULL.

Comments

A bounding rectangle defines the size, shape, and orientation of the elliptic region: the longest sides of the rectangle define the length of the ellipse's major axis; the shorter sides define the length of the ellipse's minor axis; and, the center of the rectangle defines the intersection of the major and the minor axis.

See Also

DeleteObject, SelectObject