Print dialog close event handler

Dear Bentley Community,

I have a macro which does some things and then opens the print dialog box.  When the user clicks on the print dialog box and closes the window, I would like to display a messagebox.  Can anyone provide code to caputre this window close event or prevent my code from continuing while the window is open?

Thanks in advance,

Christmas May