The LineTo function draws a line from the current position up to, but not including, the specified point.
BOOL LineTo(
HDC hdc, |
// device context handle |
int nXEnd, |
// x-coordinate of line’s ending point |
int nYEnd |
// y-coordinate of line’s ending point |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The coordinates of the line’s ending point are specified in logical units.
The line is drawn by using the current pen and, if the pen is a geometric pen, the current brush.
If LineTo succeeds, the current position is set to the specified ending point.