1

解决方案 »

  1.   

    BOOL RoundRect(
      HDC hdc,         // handle to DC
      int nLeftRect,   // x-coord of upper-left corner of rectangle
      int nTopRect,    // y-coord of upper-left corner of rectangle
      int nRightRect,  // x-coord of lower-right corner of rectangle
      int nBottomRect, // y-coord of lower-right corner of rectangle
      int nWidth,      // width of ellipse
      int nHeight      // height of ellipse
    );
    参阅:GDI方面的API
      

  2.   

    draw it yourself.lineto call three times,
    arc call one time.
      

  3.   

    GetDC()
    MoveToEx()
    LineTo()
    LineTo()
    LineTo()
    最后:
       Ellipse();矩形的话该使用椭圆