Discussion:
Using wxDialog::Destroy for modal dialogs
(too old to reply)
Chris Stankevitz
2009-05-21 22:53:24 UTC
Permalink
I normally put cleanup code in virtual MyWindow::Destroy. Modal dialogs
are unfortunately hidden, not destroyed inside wxDialog::EndModal.
Where should I put it for a modal dialog?

Thank you,

Chris

PS: My cleanup code calls wxDocument::UpdateAllViews to notify the views
that the dialog is no longer open and the special markups no longer need
to be drawn.
Chris Stankevitz
2009-05-22 00:44:31 UTC
Permalink
Post by Chris Stankevitz
I normally put cleanup code in virtual MyWindow::Destroy. Modal dialogs
are unfortunately hidden, not destroyed inside wxDialog::EndModal. Where
should I put it for a modal dialog?
Moved to the google list...

Chris

Loading...