Visual Studio 2010 - Visual C++
CDC::LineTo
Draws a line from the current position up to, but not including, the point specified by x and y (or point).
BOOL LineTo( int x, int y ); BOOL LineTo( POINT point );
Parameters
Return Value
Nonzero if the line is drawn; otherwise 0.
Remarks
The line is drawn with the selected pen. The current position is set to x,y or to point.
Example
See the example for CRect::CenterPoint.
Requirements
Header: afxwin.h
See Also