Implementing my own print preview?

后端 未结 4 545
别那么骄傲
别那么骄傲 2021-01-03 04:48

I have developed my own Report Control which is simply nothing but drawing text on a CDC of the control window\'s client DC. I have got the printing function to work too. Th

4条回答
  •  囚心锁ツ
    2021-01-03 05:33

    There is a class CPreviewView in MFC. Maybe you can find a way to instantiate it without MDI structure.

    Otherwise, you can simply paint on screen whatever you are painting on the printer DC. Just remember that you will probably need to scale it down for lower dpi.

提交回复
热议问题