void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { AboutDialog about; if( about.ShowModal() == wxID_OK ) about.Destroy(); }
void MainFrame::OnAbout(wxCommandEvent &event) { AboutDialog *dlg = new AboutDialog(this); dlg->ShowModal(); dlg->Destroy(); }