Hi,

LineTo draws the line with the selected pen. Create the pen (includes color and line width) You like with the CreatePen method of CPen and select it with CDC::SelectObject. Don't forget to reselect the old pen and delete Your pen afterwards.


Hope for help

Rudolf