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

Reference

CDC Class

Hierarchy Chart

CDC::GetArcDirection

SetArcDirection

Other Resources

CDC Members