In closeEvent Function of main application ,before closing the main application destroying the opened dialog if the parent of the opened dialog is the main frame? that is, wxDialog (wxWindow * parent , wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wx...