Discussion:
CDC::Polyline
(too old to reply)
Deodiaus
2010-09-15 13:58:17 UTC
Permalink
I am trying to draw a horizontal line on a piece of paper, but this
does not work.
My code is
CPoint Pt1[] = {
CPoint(CPrinterInchSize.cx, ( int )( ( float )CPrinterInchSize.cy *
3.80 + x )),
CPoint(CPrinterPageSize.cx - CPrinterInchSize.cx, ( int )
( ( float )CPrinterInchSize.cy * 3.80 + x ))
};
CPrintDC.Polyline(Pt1, 2);


I am able to write text via CPrintDC.TextOut and make an image via
CPrintDC.StretchBlt
but this fails. Do I need to create a CPen or CPalette object or set
my clip rectangle ?
Deodiaus
2010-09-16 00:37:33 UTC
Permalink
It does work when printing on my HP printer,
but for some reason it did not show up on the xps virtual printer.
I have to make it several pixels thicker.
Does anyone know how to do that?

Loading...