示例#1
0
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
	AboutDialog about;

	if( about.ShowModal() == wxID_OK )
		about.Destroy();
}
示例#2
0
void MainFrame::OnAbout(wxCommandEvent &event)
{
	AboutDialog *dlg = new AboutDialog(this);
	dlg->ShowModal();
	dlg->Destroy();
}