Circle method


Available for Window, DialogBox and Picture objects.

Prototype

Circle Proto hWnd:HWND, lLeft:LONG, lTop:LONG, lRight:LONG, lBottom:LONG, crFill:COLORREF

Syntax

Invoke Circle, hWnd, lLeft, lTop, lRight, lBottom, crFill

Function

Draws a circle (or ellipse). The center is that specified for the bounding rectangle.

Parameters

hWnd

Handle to the object.

lLeft

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

lTop

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

lRight

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

lBottom

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

crFill

Specifies the color to fill the circle with.

Return value

Eax returns TRUE if successful, or FALSE if not.


REMARKS: The
DrawingStyle and DrawingWidth properties are used to draw the circle, while the crFill parameter specifies the color to fill the circle with. If the crFill parameter is -1, the circle is filled with the back color of the object (see the BackColor property).