For a complete example see the SilverEngine sample MFCPrint. The following code shows a typical usage for print_scene when a page-style preview is desired, or the normal SilverScreen printing mechanism is otherwise undesired:

C / C++ Code

//

// OnPrint - Called by the framework to print or preview a page of the