Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDC::LineTo
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL LineTo( int x, int y );
  BOOL LineTo( POINT point );
 
  Parameter   Description
 
  <x>         Specifies the logical x-coordinate of the endpoint for the
              line.
 
  <y>         Specifies the logical y-coordinate of the endpoint for the
              line.
 
  <point>     Specifies the endpoint for the line. You can pass either a
              POINT structure or a CPoint object for this parameter.
 
  Remarks
 
  Draws a line from the current position up to, but not including, the
  point specified by <x> and <y> (or <point>). The line is drawn with the
  selected pen. The current position is set to <x>,<y> or to <point>.
 
  Return Value
 
  TRUE if the line is drawn; otherwise FALSE.
 
  See Also
 
  CDC::MoveTo, CDC::GetCurrentPosition, ::LineTo
 
 
                                     -♦-