Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Visual Basics Program Ideas? Pin
David Crow30-May-09 10:56
David Crow30-May-09 10:56 
Questiona socket problem Pin
tyr200029-May-09 22:46
tyr200029-May-09 22:46 
AnswerRe: a socket problem Pin
Rajesh R Subramanian30-May-09 0:08
professionalRajesh R Subramanian30-May-09 0:08 
AnswerRe: a socket problem Pin
CPallini30-May-09 2:30
mveCPallini30-May-09 2:30 
AnswerRe: a socket problem Pin
luxiaokang30-May-09 15:15
luxiaokang30-May-09 15:15 
GeneralRe: a socket problem Pin
Luc Pattyn30-May-09 15:45
sitebuilderLuc Pattyn30-May-09 15:45 
GeneralRe: a socket problem Pin
fanronghua30-May-09 22:36
fanronghua30-May-09 22:36 
AnswerRe: a socket problem Pin
tyr200031-May-09 0:00
tyr200031-May-09 0:00 
GeneralRe: a socket problem Pin
Luc Pattyn31-May-09 1:49
sitebuilderLuc Pattyn31-May-09 1:49 
GeneralRe: a socket problem Pin
tyr200031-May-09 23:14
tyr200031-May-09 23:14 
QuestionFile Saving Pin
trioum29-May-09 21:37
trioum29-May-09 21:37 
AnswerRe: File Saving Pin
Michael Schubert29-May-09 22:57
Michael Schubert29-May-09 22:57 
GeneralRe: File Saving Pin
trioum29-May-09 23:23
trioum29-May-09 23:23 
GeneralRe: File Saving Pin
Michael Schubert29-May-09 23:45
Michael Schubert29-May-09 23:45 
GeneralRe: File Saving Pin
trioum30-May-09 0:35
trioum30-May-09 0:35 
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 

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.