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


GLUT + Printer

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

Share this post

Link to post
Share on other sites