//by rgn
MessageBox(NULL,"Initial Ok!","TestMessage",MB_ICONWARNING + MB_YESNO + MB_DEFBUTTON2 );
AfxMessageBox("Next Step:Input Your Password!");
CPasswordDialog PasswordDlg;
if(PasswordDlg.DoModal ()==IDOK)
{
if(PasswordDlg.m_PasswordValue!=1925)
{
MessageBox(NULL,"口令错误","错误",MB_OK|MB_ICONERROR);
return FALSE;
}
AfxMessageBox("欢迎进入配置程序");
}
// 分析标准外壳命令、DDE、打开文件操作的命令行
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// 调度在命令行中指定的命令。如果
// 用 /RegServer、/Register、/Unregserver 或 /Unregister 启动应用程序,则返回 FALSE。
if (!ProcessShellCommand(cmdInfo))
return FALSE;
在初始化过程中启动其他对话框
最新推荐文章于 2023-06-28 09:28:15 发布