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.
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. |
The return value specifies the old arc direction if the function is successful. Otherwise it is zero.
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 |
BeginPath