void AfxThrowUserException( );
Remarks
Throws an exception to stop an end-user operation. This function is normally called immediately after AfxMessageBox has reported an error to the user.
See Also CUserException, THROW, AfxMessageBox