Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

printing dialog boxes

Posted on 1998-08-18
2
Medium Priority
?
193 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 120 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

916 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