Compartilhar via


LineTo (Windows CE 5.0)

Send Feedback

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

WINGDIAPI BOOL WINAPI LineTo(HDChdc,intnXEnd,intnYEnd);

Parameters

  • hdc
    [in] Handle to a device context.
  • nXEnd
    [in] Integer that specifies the x-coordinate, in logical units, of the endpoint of the line.
  • nYEnd
    [in] Integer that specifies the y-coordinate, in logical units, of the endpoint of the line.

Return Values

A non-zero value indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

LineTo draws the line by using the current pen.

If LineTo succeeds, LineTo sets the current position to the specified endpoint.

If hdc specifies a mirrored device context, the horizontal coordinates increase from right-to-left rather than from left-to-right.

For information about blitting to displays with right-to-left orientations, see Creating Bitmaps.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

MoveToEx | Polyline

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.