If the application displays a dialog box to allow the user to cancel the print operation, it must call Abort Doc before destroying the dialog box.
If Print Manager was used to start the print job, calling Abort Doc erases the entire spool job — the printer receives nothing.
If there is an open path bracket in the device context, the path bracket is closed and the path is discarded.
If there is a closed path in the device context, the path is discarded. Nonzero if the function is successful; otherwise 0.
GDI automatically terminates the operation before returning the error value.Print preview is implemented in the framework in a similar fashion.