Solved

printing dialog boxes

Posted on 1998-08-18
2
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Suggested Courses

622 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