LineTo Function
Declaration
Private Declare Function LineTo Lib "gdi32" Alias "LineTo" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Description of Function
Draws a line using the current pen from the current position to (x,y) in hdc.
Parameter Type / Description
hdc Long / Handle to DC to draw in.
x Long / End position for the x component.
y Long / End position for the y component.
Return Value
Long / Nonzero on success, Zero on failure.
Note
After execution the current position is set to (x,y).
|