Solved

printing dialog boxes

Posted on 1998-08-18
2
164 Views
Last Modified: 2013-11-20
I have a dialog based program and I want the user to be able to print the dialog box they are using.
Thanks for the help!
0
Comment
Question by:troy11
2 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 60 total points
ID: 1320945
I assume you know enough about printing to get a printer DC etc.  If you don't then goto http://www.codeguru.com and search for "Dialog Print".  The first article that comes up tells you how to print without the Doc/View framework.

Okay, now to print (draw ?) your dialog to the printer DC :-
1. Create a memory bitmap (CreateCompatibleBitmap), and DC (CreateCompatibleDC).  Select the bitmap into the DC
2. GetDC on the dialog
3. BitBlt from #2 to #1
4. ReleaseDC on the dialog
5. Send the bitmap to the printer
6. Clear up #1

0
 

Author Comment

by:troy11
ID: 1320946
I am not very familar with printing so I will try codeguru.
Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question