SetArcDirection

The SetArcDirection sets the drawing direction to be used for arc and rectangle functions.

int SetArcDirection(
  HDC hdc,           // handle to the device context
  int ArcDirection   // specifies the new arc direction
);
 

Parameters

hdc
Handle to the device context.
ArcDirection
Specifies the new arc direction. This parameter can be one of the following values:
Value Meaning
AD_COUNTERCLOCKWISE Figures drawn counterclockwise.
AD_CLOCKWISE Figures drawn clockwise.

Return Values

If the function succeeds, the return value specifies the old arc direction.

If the function fails, the return value is zero.

Windows NT: To get extended error information, call GetLastError.

Remarks

The default direction is counterclockwise.

The SetArcDirection function specifies the direction in which the following functions draw:

Arc ArcTo
Chord Ellipse
Pie Rectangle
RoundRect

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 98 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.
  Import Library: Use gdi32.lib.

See Also

Lines and Curves Overview, Line and Curve Functions