CDC::SetArcDirection

Sets the drawing direction to be used for arc and rectangle functions.

int SetArcDirection(
   int nArcDirection 
);

Parameters

  • nArcDirection
    Specifies the new arc direction. This parameter can be either of the following values:

    • AD_COUNTERCLOCKWISE   Figures drawn counterclockwise.

    • AD_CLOCKWISE   Figures drawn clockwise.

Return Value

Specifies the old arc direction, if successful; otherwise 0.

Remarks

The default direction is counterclockwise. The SetArcDirection function specifies the direction in which the following functions draw:

Arc

Pie

ArcTo

Rectangle

Chord

RoundRect

Ellipse

 

Requirements

Header: afxwin.h

See Also

Concepts

CDC Class

CDC Members

Hierarchy Chart

CDC::GetArcDirection

SetArcDirection