现在在OnPaint()中,进行圆弧的绘制。
现在我已知道三个点(x1,y1),(x2,y2),(x3,y3).
那么如何绘制这个弧线啊??
谢谢

解决方案 »

  1.   

    BOOL Arc(
      HDC hdc,         // handle to device context
      int nLeftRect,   // x-coord of rectangle's upper-left corner
      int nTopRect,    // y-coord of rectangle's upper-left corner
      int nRightRect,  // x-coord of rectangle's lower-right corner
      int nBottomRect, // y-coord of rectangle's lower-right corner
      int nXStartArc,  // x-coord of first radial ending point
      int nYStartArc,  // y-coord of first radial ending point
      int nXEndArc,    // x-coord of second radial ending point
      int nYEndArc     // y-coord of second radial ending point
    );利用Arc画圆弧,需要知道圆所在矩形的坐标,就是  
    int nLeftRect, int nTopRect, int nRightRect, int nBottomRect,然后知道圆弧开始和结束坐标就可以了。你只拿出那三个坐标,估计要计算出所在圆的外切矩形了吧...