Skip to content

Latest commit

 

History

History
111 lines (76 loc) · 2.49 KB

nf-wingdi-lineto.md

File metadata and controls

111 lines (76 loc) · 2.49 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wingdi.LineTo
LineTo function (wingdi.h)
The LineTo function draws a line from the current position up to, but not including, the specified point.
LineTo
LineTo function [Windows GDI]
_win32_LineTo
gdi.lineto
wingdi/LineTo
gdi\lineto.htm
gdi
a31b3a9a-110f-4cdf-89d9-19937a2e40b4
12/05/2018
LineTo, LineTo function [Windows GDI], _win32_LineTo, gdi.lineto, wingdi/LineTo
wingdi.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Gdi32.lib
Gdi32.dll
Windows
19H1
LineTo
wingdi/LineTo
c++
APIRef
kbSyntax
DllExport
gdi32.dll
Ext-MS-Win-GDI-Draw-l1-1-0.dll
Ext-MS-Win-GDI-Draw-l1-1-1.dll
ext-ms-win-gdi-draw-l1-1-2.dll
Ext-MS-Win-GDI-Draw-L1-1-3.dll
GDI32Full.dll
LineTo

LineTo function

-description

The LineTo function draws a line from the current position up to, but not including, the specified point.

-parameters

-param hdc [in]

Handle to a device context.

-param x [in]

Specifies the x-coordinate, in logical units, of the line's ending point.

-param y [in]

Specifies the y-coordinate, in logical units, of the line's ending point.

-returns

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

-remarks

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.

Examples

For an example, see Drawing Markers.

-see-also

Line and Curve Functions

Lines and Curves Overview

MoveToEx

Polyline

PolylineTo