If you have the MS Platform SDK, do a search for
"Printing and Print Spooler Functions".
Then check the "AbortDoc"function (stops the current print job and erases everything drawn since the last call to the StartDoc function).
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
Chris