Is there anyway(function) to print a dialog on a printer?
Is there anyway(function) to print a dialog on a printer?
you can use bitblit the screen to just where yor dialog is, then bitblit that to the printer...
Last edited by -KEN-; 10-09-2001 at 03:02 PM.
I didn't knew you could do that..
How do you get the printer's DC?
What if you have multiple printers?
Oskilian
You use EnumPrinters() to get the device names and then use one of these device names in a call to CreateDC().
zen
I found
GetProfileString("windows", "device", (LPCTSTR) &szOutputBuffer,(LPTSTR) &szOutputString, 255);
hdc = CreateDC ("WINSPOOL", szOutputString, NULL, NULL) ;
works better under NT/2000 sysyems. We have a printer that has a long name and gets truncated under WIN98 using EnumPrinters().