Tutorial 3: Win32 - Stop
Graphics and the Printer working Together :)
Now its great to be able to click that print button and have your work
printed out exactly as it is on the screen...with little or no worry of how it
works. But working with the printer is almost exactly the same as working
with the screen...but the HDC is for a printer....so we use the same API's...but
the HDC is a printer one :) Cool eh?
HDC hdc =
... Use printer DC...
Knowing how to get this printer DC is the first part....the
next part is using it so that the image on the screen looks the same as on our
paper. Which means gathering information, things like paper size...aspect
ratio etc. Of course there's nothing stopping us just making guesses and
sending it to the printer... but we want to be good don't we?