PDA

View Full Version : print my graphic created in visual c++ 6.0



lange
09-06-2002, 11:00 AM
I am using Visual studio 6.0 and within that c++ 6.0 and creating a mfc exe with a single document interface.
I use the paint method to output
a graphic (say a simple ellipse). How do I print out the displayed ellipse
to my printer? I'd like the simplest way
to do this.

Thanks

Deiussum
09-06-2002, 11:07 AM
Your question really has nothing to do with OpenGL. You should read the documentation on how to use CDCs in MFC. If I remember correctly, you just have to do some conversions from the screen CDC to a printer CDC. Try searching the forums at www.codeguru.com. (http://www.codeguru.com.) They have lots of MFC info.