Click here to Skip to main content
15,895,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Saving Pin
Michael Schubert30-May-09 0:41
Michael Schubert30-May-09 0:41 
GeneralRe: File Saving Pin
molesworth30-May-09 7:55
molesworth30-May-09 7:55 
GeneralRe: File Saving Pin
Rajesh R Subramanian30-May-09 2:09
professionalRajesh R Subramanian30-May-09 2:09 
GeneralRe: File Saving Pin
CPallini30-May-09 2:59
mveCPallini30-May-09 2:59 
GeneralRe: File Saving Pin
Rajesh R Subramanian30-May-09 3:01
professionalRajesh R Subramanian30-May-09 3:01 
GeneralRe: File Saving Pin
Code-o-mat30-May-09 12:02
Code-o-mat30-May-09 12:02 
QuestionIExplorerBrowser and mouse double click Pin
CString(0xcccccccc)29-May-09 21:20
CString(0xcccccccc)29-May-09 21:20 
QuestionPrinting from a dialog based MFC application Pin
natejones29-May-09 18:09
natejones29-May-09 18:09 
Hello, can anyone please point me in the right direction on how to print from a dialog based application?

I have scoured the net for countless hours searching for a solution to this problem.
I know it's a standard task in an SDI or MDI application but I already have a nice dialog based application created and I don't want to start over or convert it to SDI/MDI.

Specifically what I want to do is print a CTreeCtrl out. But basically I'm wondering is there is a general strategy for printing out the contents in any control, whether it be a picture control with a bitmap, list control in report view, or whatever it may be. If I can just get a concrete example of how to print out some control, a tree one for example, then I think I can figure out to print other controls.

No one out there seems to know how to do this. I've found code examples in several places that supposedly lets you print a bitmap, but I'm not sure how to "convert" a control to a bitmap...besides, that sounds like overkill.

What few references I have found involve very convoluded code that involves getting a printer DC and then attaching it some other member variable (the examples never tell you exactly what type object the m_x variable is that they attach the printer DC to), then some other stuff is done and eventually startPage(), etc. are called. But I have never been able to get any of these examples to compile, even after tinkering with them for hours.

So is there anyone out there reading this that can please help me with this?? I'm not asking for anyone to write the code for me. All I need is a clear explanation of the procedure for printing out a control.

Please help!?
AnswerRe: Printing from a dialog based MFC application Pin
CPallini29-May-09 21:30
mveCPallini29-May-09 21:30 
AnswerRe: Printing from a dialog based MFC application Pin
Nuri Ismail29-May-09 21:36
Nuri Ismail29-May-09 21:36 
Questiondice generation Pin
swtlibra29-May-09 18:01
swtlibra29-May-09 18:01 
QuestionRe: dice generation Pin
CPallini29-May-09 21:25
mveCPallini29-May-09 21:25 
AnswerRe: dice generation Pin
swtlibra29-May-09 21:36
swtlibra29-May-09 21:36 
QuestionRe: dice generation Pin
CPallini30-May-09 2:56
mveCPallini30-May-09 2:56 
AnswerRe: dice generation Pin
swtlibra30-May-09 23:42
swtlibra30-May-09 23:42 
GeneralRe: dice generation Pin
CPallini31-May-09 0:02
mveCPallini31-May-09 0:02 
QuestionThe peculiarities of reality : leaner but not faster ? Pin
GJBR29-May-09 10:30
GJBR29-May-09 10:30 
AnswerRe: The peculiarities of reality : leaner but not faster ? Pin
David Crow29-May-09 10:58
David Crow29-May-09 10:58 
GeneralRe: The peculiarities of reality : leaner but not faster ? Pin
GJBR29-May-09 11:10
GJBR29-May-09 11:10 
AnswerRe: The peculiarities of reality : leaner but not faster ? Pin
BobInNJ29-May-09 11:14
BobInNJ29-May-09 11:14 
GeneralRe: The peculiarities of reality : leaner but not faster ? Pin
GJBR29-May-09 11:42
GJBR29-May-09 11:42 
AnswerRe: The peculiarities of reality : leaner but not faster ? Pin
Stuart Dootson29-May-09 13:14
professionalStuart Dootson29-May-09 13:14 
AnswerRe: The peculiarities of reality : leaner but not faster ? Pin
Joe Woodbury29-May-09 13:29
professionalJoe Woodbury29-May-09 13:29 
AnswerRe: The peculiarities of reality : leaner but not faster ? Pin
Luc Pattyn29-May-09 13:40
sitebuilderLuc Pattyn29-May-09 13:40 
Questionimage in picture control not displayed properly after moving Pin
dumnbncool29-May-09 10:06
dumnbncool29-May-09 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.