void OnAppAbout()
{
// Construct the dialog box passing the
// ID of the dialog template resource
CDialog aboutDlg(IDD_DIALOG2);
// Create and show the dialog box
INT_PTR nRet = -1;
nRet = aboutDlg.DoModal();
// Handle the return value from DoModal
switch ( nRet )
{
case -1:
AfxMessageBox("Dialog box could not be created!");
break;
case IDABORT:
AfxMessageBox("Dialog box could not be created!");
break;
case IDOK:
AfxMessageBox("Dialog box could not be created!");
break;
case IDCANCEL:
AfxMessageBox("Dialog box could not be created!");
break;
default:
AfxMessageBox("Dialog box could be created!");
break;
};
}
void MFC_Tutorial_Window::OnConnectionButton()
{
void OnAppAbout();
}