}
}
+BEGIN_EVENT_TABLE(ScoreDialog, wxDialog)
+ EVT_CLOSE(ScoreDialog::OnCloseWindow)
+END_EVENT_TABLE()
ScoreDialog::ScoreDialog(
wxWindow* parent,
Show(TRUE);
}
-bool ScoreDialog::OnClose()
+void ScoreDialog::OnCloseWindow(wxCloseEvent& event)
{
- // hide the dialog
- // NB don't return TRUE otherwise delete is called
- Show(FALSE);
- return FALSE;
+ EndModal(wxID_OK);
}