有人会用VC画圆弧吗?已知圆心,圆弧上面两点!!!求解!!!
急!!!!QQ:979642339,求指导!!

解决方案 »

  1.   

    圆心到圆弧上一点的距离是半径
    直接用ellipse函数画圆就OK了
      

  2.   

    void CCurvesView::OnDraw(CDC* pDC)
    {
       // Fill the client area with a thin circle. The circle's
       // interior is not filled. The circle's perimeter is
       // blue from 6 o'clock to 3 o'clock and red from 3
       // o'clock to 6 o'clock.   // Get the client area.
       CRect rectClient;
       GetClientRect(rectClient);   // Make a couple of pens.
       CPen penBlue;
       CPen penRed;
       CPen* pOldPen;   penBlue.CreatePen(PS_SOLID | PS_COSMETIC, 1, RGB(0, 0, 255));
       penRed.CreatePen(PS_SOLID | PS_COSMETIC, 1, RGB(255, 0, 0));   // Draw from 3 o'clock to 6 o'clock, counterclockwise,
       // in a blue pen.   pOldPen = pDC->SelectObject(&penBlue);   pDC->Arc(rectClient,
          CPoint(rectClient.right, rectClient.CenterPoint().y),
          CPoint(rectClient.CenterPoint().x, rectClient.right));   // Draw from 6 o'clock to 3 o'clock, counterclockwise,
       // in a red pen.
       pDC->SelectObject(&penRed);   // Keep the same parameters, but reverse start
       // and end points.
       pDC->Arc(rectClient,
          CPoint(rectClient.CenterPoint().x, rectClient.right),
          CPoint(rectClient.right, rectClient.CenterPoint().y));   // Restore the previous pen.
       pDC->SelectObject(pOldPen);
    }
      

  3.   

    MSDN上面很清楚链接