SetArcDirection

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

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

Parameters

hdc

Identifies the device context.

ArcDirection

Specifies the new arc direction. This parameter may have one of the following values:

Value Meaning

AD_COUNTERCLOCKWISE  
  Figures are to be drawn counterclockwise.
AD_CLOCKWISE  
  Figures are to be drawn clockwise.

Return Value

The return value specifies the old arc direction if the function is successful. Otherwise it is zero.

Comments

The default direction is counterclockwise. The direction in which figures are drawn may be important when using paths or styled lines.

The SetArcDirection function specifies the direction in which the following functions are drawn:

Arc  
ArcTo  
Chord  
Ellipse  
Pie  
Rectangle  
RoundRect  

See Also

BeginPath