> > AngleArc is an NT 3.1+ only function, there should be a check at the
> > start of the function to determine the windows version.
> 
> It seems other people think this is a useless overhead. 
> Although I more tend 
> to agree with you, I can't make up my mind. 
> 
> > Also, your code does not take into account the the world transform.
> 
> Nope... :-)
> 
> > If I am not mistaken you also have to take into account the 
> arc direction.
> 
> According to the MS documenation, the AngleArc function always works 
> counterclockwise..

>From MSDN

---8<---
SetArcDirection

Remarks
  The default direction is counterclockwise. 

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

  Arc
  ArcTo
  Chord
  Ellipse
  Pie
  Rectangle
  RoundRect

Requirements 
  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 98.
  Windows CE: Unsupported.
---8<---

I was just about to say that you are wrong but then I saw
that the documentation support you. Oh well. :-)


Reply via email to