Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MatrixCubed

GLUT + Printer

This topic is 5559 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I''ve got kind of a weird question. I am developing a Windows OpenGL application for someone, and it will be necessary to be able to send the contents of the screen to a printer. Right now, I am using GLUT, because the application will have to eventually be ported to other OSes, thus I am trying to cut down on some of the coding. I have some code (thanks MSDN!) that I can use to send HDC data to the printer. So far so good, except that GLUT does not expose Windows HWNDs (which are required for the HDC code, above). I know I can enumerate available desktop windows and get the HWND from that, but is there a more elegant way to get the active HWND? Thanks, MatrixCubed
http://MatrixCubed.cjb.net

Share this post


Link to post
Share on other sites
Advertisement
you could save the "printout" into a file on the harddisk and use another windows program to print that file

Share this post


Link to post
Share on other sites
To get the hwnd to the current window you can use ::GetForegroundWindow I think.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!