Deodiaus
2010-09-15 13:58:17 UTC
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 ?
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 ?