SetArcDirection function (wingdi.h)

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

Syntax

int SetArcDirection(
  [in] HDC hdc,
  [in] int dir
);

Parameters

[in] hdc

A handle to the device context.

[in] dir

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 value

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

If the function fails, the return value is zero.

Remarks

The default direction is counterclockwise.

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

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

Line and Curve Functions

Lines and Curves Overview