void OnPrint( void );


Do all rendering (the same way as in MFC’s OnDraw method) before calling the OnPrint method. It is enough to do rendering only for first time and then call OnPrint multiple times if required. The OnPrint method copies the rendered scene into the printing device.

This method is available since ClassGL version 3.5


See the example in OnBeginPrinting.

See Also

OnBeginPrinting, OnEndPrinting, SetMaxPrintResolution, GetMaxPrintResolution