先把点计算好,在用Polyline画线. BOOL Polyline( LPPOINT lpPoints, int nCount ); Parameters lpPoints Pointer to an array of POINT structures or CPoint objects to connect. nCount The number of points in the array. This value must be at least two. Return Value Nonzero if the function is successful; otherwise, it is zero.
BOOL Polyline(
LPPOINT lpPoints,
int nCount );
Parameters
lpPoints
Pointer to an array of POINT structures or CPoint objects to connect.
nCount
The number of points in the array. This value must be at least two.
Return Value
Nonzero if the function is successful; otherwise, it is zero.