www.xbdev.net
xbdev - software development
Thursday March 28, 2024
home | contact | Support | Win32.. Using our Windows API's...

     
 

Win32..

Using our Windows API's...

 

Tutorial 3: Win32 - Stop printing..stop stop!

by bkenwright@xbdev.net

 

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 = GetPrinterDC();

... Use printer DC...

DeleteDC(hdc);

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?

 

 

{Under Construction}

 
Advert (Support Website)

 
 Visitor:
Copyright (c) 2002-2024 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.