[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  LineTo( hDC, nEndCol, nEndRow, hPen )-> <lOk>
------------------------------------------------------------------------------


 PARAMETER:

  <hDC>      handle that identifies a device context

  <nCol>     col at which the line ends

  <nRow>     row at which the line ends

  <hPen>     optional Pen handle having the specified style, width and
                 color


 RETURNS:

  The return value is nonzero if the function is successful. Otherwise, it
  is zero


 DESCRIPTION:

  The LineTo function draws a line from the current position up to, but not
  including, the specified endpoint. The function uses the current or the
  specified pen to draw the line and sets the current position to the 
  coordinates ( nEndRow, nEndCol ). 


  EXAMPLE:

     +-------------------------------------------------------------+
     |  /* Get Device context and move to x,y */                   |
     |   hDC := GetDC( oWnd:hWnd )                                 |
     |   MoveTo( hDC, 10, 10 )                                     |
     |                                                             |
     |  /* Create new Pen and draw the line */                     |
     |   LineTo( hDC, 10, 80, CreatePen( PS_SOLID, 1, CLR_BLACK )) |
     |   ReleaseDC( hDC )                                          |
     +-------------------------------------------------------------+


 SOURCE:  

  SOURCE\WINAPI\DRAWING.C 



See Also: Rectangle CreatePen MoveTo hDC
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson