Share via


Printing and Print-Preview Tasks

OverviewDetails

MFC supplies an architecture for printing and print preview. By default, print preview just works, although you can modify it.

You must do some work for printing, primarily implementing your view’s member function. The printing architecture makes use of OnDraw; you draw to the printer just as you would to a view. If necessary, you can modify how this works or override it all together. For example, you might use a conditional to determine what is drawn to the screen and what is drawn to the printer.

What do you want to do?