直接在App类的InitInstance()函数中修改一下即可,类似这样,同时打开5个文档窗口
for(int i=0; i<5; i++)
{
if (!ProcessShellCommand(cmdInfo))
return FALSE;
}
也可以这样:
if (!ProcessShellCommand(cmdInfo))
return FALSE;
for(int i=0; i<5; i++)
{
CWinApp::OnFileNew();
}
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.