最终到画的时候代码是这样的,注释的部分为变量的值。
CRect _rc = LPtoDP_Rect(rcBound_); // top:-19886 bottom:20440 left:-39775 right:552
CPoint _ptS = LPtoDP_Point(ptStart_);// x:551 y:469
CPoint _ptE = LPtoDP_Point(ptEnd_); // x:551 y:150
return CDC::Arc(_rc, _ptS, _ptE);
画出来就是图上的样子[/quote]
MSDN上面写:Since an arc is not a closed figure, it is not filled. Both the width and height of the rectangle must be greater than 2 units and less than 32,767 units.
说不能小2大于32767,但是没看懂为什么要这样