Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>lineto()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LineTo()
Draw a line from the current position to the specified position
------------------------------------------------------------------------------

Syntax
LineTo( <hDC>, <nX>, <nY> )   -->   lSuccess

Arguments
<hDC> specifies the device context for a window.

<nX>, <nY> specify the position to draw to.

Returns
If successful, logical TRUE (.T.) is returned.  Otherwise,
FALSE (.F.) is returned.

Description
This function uses GDI (graphics device interface) to draw a
line from the current position (e.g. as set using the MoveTo()
function) up to the end point specified, using the currently
selected pen.  The endpoint itself is not included in the line
drawn.

Example
MoveTo( hDC, 100, 100 )
LineTo( hDC, 200, 100 )       // a horizontal line


See Also: GetDC() MoveTo()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson