CDC::QueryAbort
Visual Studio 2012
Calls the abort function installed by the SetAbortProc member function for a printing application and queries whether the printing should be terminated.
BOOL QueryAbort( ) const;