Click here to Skip to main content
15,910,303 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with textbox control Pin
Nelek15-May-07 21:11
protectorNelek15-May-07 21:11 
GeneralRe: Help with textbox control Pin
Hamid_RT15-May-07 1:53
Hamid_RT15-May-07 1:53 
QuestionChanging datatype from VB.NET to VC++ 6.0 Pin
ctlqt1214-May-07 22:36
ctlqt1214-May-07 22:36 
AnswerRe: Changing datatype from VB.NET to VC++ 6.0 Pin
fang_eric15-May-07 0:13
fang_eric15-May-07 0:13 
QuestionRegistry notification Pin
Alexandre GRANVAUD14-May-07 21:43
Alexandre GRANVAUD14-May-07 21:43 
AnswerRe: Registry notification Pin
Rajesh R Subramanian15-May-07 7:16
professionalRajesh R Subramanian15-May-07 7:16 
GeneralRe: Registry notification Pin
Alexandre GRANVAUD15-May-07 7:22
Alexandre GRANVAUD15-May-07 7:22 
QuestionHow to print with a new CPrintDialog derived DBox?? Pin
Nelek14-May-07 21:03
protectorNelek14-May-07 21:03 
Hi all,

I have a little problem with printing. The case is that my program has multiple views and I need to print different things depending of the view that is active in this moment. I have derived a Dialog from CPrintDialog to allow some parameters selection and to print different outputs according to these parameters. I have successfully called the new DialogBox and set the parameters to choose the output. My problem is that, as I have overridden the CNewPrintDialog::OnOk () to modify the things I need, when I click OK in my dialog and send the work to print… I have an error because the DeviceContext for the printer is not correctly saved in pInfo->m_pPD->m_pd.m_hDC. My question is… where can I find the implementation (not the definition) of the CPrintDialog to see its CPrintDialog::OnOk and copy what I need in my Dialog???Confused | :confused:

Or… How should I make it to successfully send the datas to be printed? I have tried to print with what Chris Maunder’s says in one of his articles (Printing without the Document/View framework) but it doesn’t solves my problem because I do use the framework Cry | :((

Any help will be wellcome


Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

AnswerRe: How to print with a new CPrintDialog derived DBox?? Pin
Hamid_RT14-May-07 22:01
Hamid_RT14-May-07 22:01 
GeneralRe: How to print with a new CPrintDialog derived DBox?? Pin
Nelek14-May-07 22:50
protectorNelek14-May-07 22:50 
GeneralRe: How to print with a new CPrintDialog derived DBox?? Pin
Hamid_RT15-May-07 5:59
Hamid_RT15-May-07 5:59 
GeneralRe: How to print with a new CPrintDialog derived DBox?? Pin
Nelek15-May-07 21:24
protectorNelek15-May-07 21:24 
GeneralRe: How to print with a new CPrintDialog derived DBox?? Pin
Hamid_RT15-May-07 21:54
Hamid_RT15-May-07 21:54 
GeneralRe: How to print with a new CPrintDialog derived DBox?? Pin
Hamid_RT15-May-07 22:28
Hamid_RT15-May-07 22:28 
GeneralSolved Pin
Nelek15-May-07 22:53
protectorNelek15-May-07 22:53 
QuestionHow to read a unicoded file Pin
Karismatic14-May-07 20:19
Karismatic14-May-07 20:19 
AnswerRe: How to read a unicoded file Pin
Hamid_RT14-May-07 20:42
Hamid_RT14-May-07 20:42 
QuestionHow to intercept tab control creation from a dialog template Pin
Chilli7114-May-07 19:44
Chilli7114-May-07 19:44 
AnswerRe: How to intercept tab control creation from a dialog template Pin
Arman S.14-May-07 20:01
Arman S.14-May-07 20:01 
GeneralRe: How to intercept tab control creation from a dialog template Pin
Chilli7115-May-07 1:07
Chilli7115-May-07 1:07 
QuestionVC++ Version Pin
vivekphlp14-May-07 19:37
vivekphlp14-May-07 19:37 
AnswerRe: VC++ Version Pin
Michael Dunn14-May-07 19:52
sitebuilderMichael Dunn14-May-07 19:52 
GeneralRe: VC++ Version Pin
BadKarma14-May-07 20:27
BadKarma14-May-07 20:27 
GeneralRe: VC++ Version Pin
vivekphlp17-May-07 18:09
vivekphlp17-May-07 18:09 
AnswerRe: VC++ Version Pin
Hamid_RT14-May-07 20:48
Hamid_RT14-May-07 20:48 

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.