请问:如何在VC++ 6下旋转一个矩形?矩形可以用rect画出,或旋转一条直线?

解决方案 »

  1.   

    有现成的API函数: SetWordTransform
      

  2.   

    我用的是上面几位说的办法,旋转坐标后重画。
    但还有别的办法吗?我想vc应该有把图形直接旋转的方法吧?如果只有重画,岂不太惨了?
    另,msdn里没找到SetWordTransform。
      

  3.   

    Using SetWorldTransform() to rotate basic shapes by any angle
    only for win2000http://www.codeproject.com/gdi/setworldtransform().asp?target=xform
      

  4.   

    i view the site, that is a idea, thanks, any more?