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
);
| Value | Meaning |
|---|---|
| AD_COUNTERCLOCKWISE | Figures drawn counterclockwise. |
| AD_CLOCKWISE | Figures drawn clockwise. |
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.
The default direction is counterclockwise.
The SetArcDirection function specifies the direction in which the following functions draw:
| Arc | ArcTo |
| Chord | Ellipse |
| Pie | Rectangle |
| RoundRect |
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.
Lines and Curves Overview, Line and Curve Functions