The LineTo function draws a line from the current position up to, but not including, the specified point.
BOOL LineTo( HDC hdc, int x, int y );
Handle to a device context.
Specifies the x-coordinate, in logical units, of the line's ending point.
Specifies the y-coordinate, in logical units, of the line's ending point.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
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.
For an example, see Drawing Markers.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|