Start with the project you created in Setting the Digital Painting Properties.
Add the following item to he File popup menu you created in Implementing the Paint Automation Initializing, Creating and Freeing.
&Print with ID = IDM_FILE_PRINT
Add the following code to the WndProc function before case IDM_EXIT and after the "return 0L ;" of the case IDM_FILE_OPEN in the WM_COMMAND message:
case IDM_FILE_PRINT:
L_AutPrint ( pAutomation, 0 ) ;
return 0L ;
Compile and run the project by selecting Build->Execute tutorial.exe from the menu.