最佳答案
您可以使用CDC::Polygon,它是Polygon API的包装器
例:
CRect rc(0, 0, 100, 100);
CPoint points[3];
points[0] = CPoint(rc.left, rc.top);
points[1] = CPoint(rc.right, rc.top);
points[2] = CPoint(rc.left, rc.bottom);
ClientDC.Polygon(points, 3);
最佳答案
您可以使用CDC::Polygon,它是Polygon API的包装器
例:
CRect rc(0, 0, 100, 100);
CPoint points[3];
points[0] = CPoint(rc.left, rc.top);
points[1] = CPoint(rc.right, rc.top);
points[2] = CPoint(rc.left, rc.bottom);
ClientDC.Polygon(points, 3);