Solved

printing dialog boxes

Posted on 1998-08-18
2
162 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now