CPrintDialog PrintPreview

Hi to all

I have created a custom dialog box for my application.
I want to display a preview of the file I want to print in the same dialog (like Adobe acrobat).
what kind of control I need to add?

Where in my CPrintDialog derived class does i add the drawing code? I put it in OnInitDialog() but i see nothing, in OnPaint() and i see nothing.

Note : I had made a dialog based application and i can display what i want in the dialog, but when I try to do the same in the CPrintDialog class, I don't get the same result.

thank you for help
[589 byte] By [khaldoun KASSEM] at [2007-11-18 1:40:20]
# 1 Re: CPrintDialog PrintPreview
In this case it would be useful for you to post a small sample test case of your code.

As a "stab in the dark", I believe that you need to create a template dialog which has an area set aside for drawing the preview. You'll need to specify the appropiate flags and modify the PRINTDLG structure associated with the CPrintDialog.

You should also check the dialog section of dev-archive's articles. There are several exmples of how to do this sort of thing for File dlgs and there maybe info on Print dlgs as well.
bytz at 2007-11-10 8:54:16 >