How do I print my program's main window? How do I show a Print Dialog? :confused:
Posted on 2002-10-25 19:22:54 by abonetochew
If you program is going to be a windows application, the main window is to be created and initially displayed by you in your program (look up win32 skeleton)
From this point, its up to you how much you want to let Windows draw your display, and how much you wish to "owner-draw" (more advanced)...
The alternative is to code your programs WITHOUT a window, which makes them "console applications" that put their output text in a 'DOS window'...
The choice is yours, but I suggest you begin with looking at examples.
Posted on 2002-10-25 20:40:33 by Homer
No, I meant print as in, "send what I have in my window to this thing that puts it on a piece of paper." :)
Posted on 2002-10-26 18:17:40 by abonetochew
Well, do you just want a screenshot of your window or just whatever content is inside your window??

If it's latter a board would help you. Afaik, NaN once included a whole .asm file showing how to print from A-Z including how toset up a PrintDialog.

And then there's always Boogle too.
Posted on 2002-10-26 19:26:55 by JimmyClif
Here is the source if you are still interested....

Posted on 2002-10-29 03:19:38 by NaN