How to get access to the CDC* and CPrintInfo* that are incoming parameters of OnPrint?
Posted on 1997-05-22
What I want to know is, how do you get the current CDC* and CPrintInfo* from a CView class that I created without being in a procedure that has them as incoming parameters.
I'm trying to call OnPrint() from within a procedure that doesn't have the CDC* or CPrintInfo* as incoming parameters. The reason I want to do this is that I want have a dialog button (not the print dialog) execute the printing functions of a view that I have created. I have everything set up for this, except I can't get a hold of the CDC* and the CPrintInfo* , and when I try to just declare my own locally, the program crashes on execution.
Thanks for your help in advance,