CDC::PolyDraw

BOOL PolyDraw( const POINT* lpPoints, const BYTE* lpTypes, int nCount );

Return Value

Nonzero if the function is successful; otherwise 0.

Parameters

lpPoints

Points to an array of POINT data structures that contains the endpoints for each line segment and the endpoints and control points for each Bézier spline.

lpTypes

Points to an array that specifies how each point in the lpPoints array is used. Values can be one of the following:

nCount

Specifies the total number of points in the lpPoints array, the same as the number of bytes in the lpTypes array.

Remarks

Draws a set of line segments and Bézier splines. This function can be used to draw disjoint figures in place of consecutive calls to CDC::MoveTo, CDC::LineTo, and CDC::PolyBezierTo member functions. The lines and splines are drawn using the current pen, and figures are not filled. If there is an active path started by calling the CDC::BeginPath member function, PolyDraw adds to the path. The points contained in the lpPoints array and in lpTypes indicate whether each point is part of a CDC::MoveTo, a CDC::LineTo, or a CDC::BezierTo operation. It is also possible to close figures. This function updates the current position.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::BeginPath, CDC::EndPath, CDC::LineTo, CDC::MoveTo, CDC::PolyBezierTo, CDC::PolyLine, ::PolyDraw