
how to call OnPaint() from my own function
I use CFormView with
MFC to do a project.
I did manage the code in OnPrint(CDC* pDC, CPrintInfo* pInfo) and print out
my data,
which I use default menu "file / print" to call OnPrint(..) .
But right now, I need use my own function to do something first then call
OnPrint( ) within MyFunction();
The question is: How can I get CDC and CPrintInfo?
thanks,
larry