Boolean CBiddingForm::OnAbout(EventType* pEvent, Boolean& bHandled) { CAboutDialog frmAbout; frmAbout.DoModal(); bHandled = false; return true; }
void CTwisterDialog::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUT) { CAboutDialog dlgAbout; dlgAbout.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } }
void CMainDialog::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDialog dialog; dialog.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } }
void CBaseDialog::OnSysCommand(UINT nID, LPARAM lParam) { switch ( nID ) { case IDM_ABOUTBOX: { CAboutDialog dlgAbout; dlgAbout.DoModal(); break; } case IDS_HELPDOC: { //App ICON -> Menu -> Help CWnd *pWndPrev, *pWndChild; CString str, strHelpTitle; str.LoadString(IDS_APPNAME); AddPrefixName(str); strHelpTitle.Format(_T("%s %s"), str, _T("Help")); if(pWndPrev = CWnd::FindWindow(NULL, strHelpTitle)) { pWndChild = pWndPrev->GetLastActivePopup(); pWndPrev->ShowWindow(SW_RESTORE); pWndChild->SetForegroundWindow(); } else { //Press Help button //CString str = AfxGetApp()->m_pszHelpFilePath; //int iPos = str.ReverseFind('\\'); CString strHelpFile;// = str.Left(iPos); //strHelpFile += "\\DataCardHelp.chm"; //strHelpFile = "DataCardHelp.chm"; strHelpFile=g_SetData.Main_szHelpFile; CString CInfo; if( (_waccess( strHelpFile, 0 )) == -1 ) { CInfo.LoadString(IDS_HELPINFO); AfxMessageBox(CInfo); } ShellExecute(NULL, _T("open"),strHelpFile, NULL, NULL, SW_SHOWNORMAL); } break; } default: { CDialog::OnSysCommand(nID, lParam); break; } } }
void CMainFrame::OnCmdAppAbout(UINT /* wNotifyCode */, int /* wID */, HWND /* hWndCtl */) { CAboutDialog dlg; dlg.DoModal(); }
void CCCFixDlg::OnAbout() { CAboutDialog dlgAbout; dlgAbout.DoModal(); }
void CTemplateSelectDialog::OnTsAbout() { CAboutDialog dlg; dlg.DoModal(); GetDlgItem(IDC_TS_TREE)->SetFocus(); }
// Display About box. void CEventHandlerApp::OnAppAbout() { CAboutDialog aboutDialog; aboutDialog.DoModal(); }
void CTemplateFileListDialog::OnComAbout() { CAboutDialog dlg; dlg.DoModal(); }
void CTwisterDialog::OnAboutButton() { CAboutDialog dlg; dlg.DoModal(); }
void CDizzyDialog::OnAbout() { CAboutDialog dlg; dlg.DoModal(); }
void CCedtApp::OnAppAbout() { CAboutDialog dlg; dlg.DoModal(); }