Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Draws a line.
void DrawLine(
   int x1,
   int y1,
   int x2,
   int y2,
   COLORREF clrLine
);
void DrawLineA(
   double x1,
   double y1,
   double x2,
   double y2,
   COLORREF clrLine
);
Parameters
| Parameter | Description | 
| [in] x1 | The x coordinate where the line starts. | 
| [in] y1 | The y coordinate where the line starts. | 
| [in] x2 | The x coordinate where the line ends. | 
| [in] y2 | The y coordinate where the line ends. | 
| [in] clrLine | The color of the line. | 
Remarks
This method fails if clrLine equals -1.
Requirements
Header: afxdrawmanager.h