void CTrayApp::OnAppAbout() { //avoid bringing up two versions of the dialog if (m_pCurrentAboutDlg) { m_pCurrentAboutDlg->SetForegroundWindow(); return; } //Show the window CDialog aboutdlg(IDD_ABOUTBOX); m_pCurrentAboutDlg = &aboutdlg; aboutdlg.DoModal(); m_pCurrentAboutDlg = NULL; }
void QuenchFrame::OnAbout(wxCommandEvent& event) { AboutDlg aboutdlg(this); aboutdlg.ShowModal(); }