例如:(要将CAboutDlg类的定义提前,当然对于其它对话框,包含头文件就可以了) LoadStdProfileSettings(); // Load standard INI file options (including MRU) CAboutDlg aboutDlg; //<-----------添加2行 aboutDlg.DoModal(); CSingleDocTemplate* pDocTemplate;
在CWinApp的InitInstance()函数中加载一个对话框窗体
确实是在CWinApp的InitInstance()函数中实现的 LZ不妨在工程中添加一个Splash窗口看看就明白了步骤:project->Add to project->Components and Controls...->Visual C++ components,选择Splash screen
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
之前调用你的对话框,
LoadStdProfileSettings(); // Load standard INI file options (including MRU) CAboutDlg aboutDlg; //<-----------添加2行
aboutDlg.DoModal(); CSingleDocTemplate* pDocTemplate;
LZ不妨在工程中添加一个Splash窗口看看就明白了步骤:project->Add to project->Components and Controls...->Visual C++ components,选择Splash screen