I'm using the function:
function Polyline(DC: HDC; var Points; Count: Integer): BOOL; external 'gdi32' name 'Polyline';
Using the Canvas.Pen.Color code doesn't work, as (I think) the function I'm using a built-in Windows one, and not a Pascal/Lazarus one. Does anyone know how I could change the colour of the PolyLine, or where I could go about getting this info?
Here's the code I've got, with comments to explain what I want:
procedure TNewPageControl.PaintWindow(DC: HDC);
begin
inherited PaintWindow(DC);
//set colour = black
PolyLine(DC, Points, PointNum);
//set colour = red
PolyLine(DC, VerVec, PointNumVec);
//set colour = green
PolyLine(DC, HorVec, PointNumVec);
end;
Thanks.