BCX_LINETO function

Purpose: BCX_LINETO draws a line from the last drawn position to EndX%, EndY%.


 Syntax:

 RetVal% = BCX_LINETO(hWnd, _
                      EndX%, _
                      EndY%  _
                    [, Pen]  _
                [, DrawHDC])

 Parameters:

  • RetVal% Nonzero integer if the function succeeds, zero if the function fails.
  • hWnd Identifies the window where drawing takes place.
  • EndX X-coordinate end of line.
  • EndY Y-coordinate end of line.
  • Pen [OPTIONAL] integer representing the RGB color code. The default is 0 which is a black pen.
  • DrawHDC [OPTIONAL] HDC(Handle to Device Context) pointing to an already open HDC. This is useful if a device context is to be written to many times. In this case the programmer is responsible for closing the HDC at the appropriate time.

Example: BCX_GRAFX_DEMO.bas