MFC and GDI+



In my continuing struggle to arrive in the 21st century I am trying to use
GDI+ in my MFC app.

I have added the initialisation and clear-up, and at one point in the
drawing code I have effectively replaced a

pDC->MoveTo(...);
pDC->LineTo(....);

by

Graphics graphics( pDC->m_hDC );
graphics.SetSmoothingMode( SmoothingModeAntiAlias );
graphics.DrawLine(....);

The anti-aliased line drawing is magnificent. Well it is magnificent on
the screen. And it works in print-preview. But the line is just missing
altogether on the printer! [And taking out the antialiasing line doesn't
improve things.]

Any ideas? Is the Graphics constructor OK for a printer hDC?

Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm


.


Loading