Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an MFC app which is implemented as an SDI. The view class has a CListCtrl member which is shown within the client area. The rest of the view is updated using OnDraw(). Is there a way to include the contents of the list control when I print the view?

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 2-Feb-14 12:26pm    
You can include in your CView whatever you want. Any specific problem with that?
What have you tried so far?
—SA

YES. You can implement printing yourself. It is like drawing on a DC named "Printer DC".

Here is a good sample how to do it: Printing with MFC Made Easy[^]
 
Share this answer
 
Thanks for the reply.

Yes, I have a printer DC provided by the main view. The next problem is how to get another control (in this case a CListCtrl) to draw itself on the printer DC belonging to the main window. I am not sure if this is even possible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900