How would I make a 3,4,5 triangle print out in a GUI. I was using the drawline function, but I can't figure out how to make it so its between two coordinate points. I have some code like this to draw a line
// draw line
coloredPen->Color = Color::Red;
coloredPen->Width = 5;
graphicsObject->DrawLine( coloredPen, 395, 150, 250, 150 );
But I would like to use coordinate points to do this. I dont really know what to do from here.