How to Track and Skip Close Event in Bricscad in VC++

Dear Friends,
I want to track and skip close event in Bricscad for Saved drawing and Unsaved Drawings.
I try with document reactor to track close event by using documentToBeDestroyed method.But this method invoked after the save drawing dialog of Bricscad.I want to track the close when the user click close Mark(x at the right side) and skip the save drawing dialog of Bricscad and show my own message "Not Closed Now because the Operation is Not Completed".

please give your suggestion to solve this problem.

Thank you Friends,
Nathan.

This discussion has been closed.