modeless wxWizard - how to get notified when closed

Hi list,

I ran into a strange problem - some particular calls to a 3rd party library are not executed from the handler I hooked for EVT_WIZARD_FINISHED of my custom modeless wxWizard, but they get executed before and after the wizard is alive.

Therefore the only solution I see is
- save the data of interest on the onFinished() handler
- use it to call the 3rd party functions, as soon as the wizard gets destroyed.

I've seen in the wxW sources that Destroy() is called() as soon as EVT_WIZARD_FINISHED is handled, for modeless wizards.

Unfortunately, I have no idea how to get notified when the wizard gets destroyed. Does any of you?

Thank you,

Cristina.