Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer dialog (No MFC)

Status
Not open for further replies.

lGOOODl

Programmer
Dec 4, 2001
31
DK
Hi,

I was hoping that you would be so gentle, and help me out whit this problem. I want to show the Printer dialog, where users can chose which printer, they would like to use. And after I have the "printer" how do I then get the printer DC??? I Know that this here is probaly not so easy to anser! But It would help me at lot.

Thanks
..:::GOOOD:::..
 
You can use the API call to get the DC but you need a handle to the window. The problem is that I dont know how to get the printer dialog without MFC. I think you may need to go down the route of API calls and creating your own print dialog (HOWEVER that would use MFC as well). Sorry, I have never done it this way so these are just assumptions.

Matt
 
I would say like to say thanks, for your help. But can you write the api call i should use.
 
Oh sorry :) GetDC(handle to print dialog). Returns a handle to the DC

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top