求教大虾,多文档工程中怎样在程序开始就出现多个文档视窗?
我试了下面办法:
例如工程名app,则在app.cpp中,
在 AddDocTemplate(pDocTemplate); 后面加一个AddDocTemplate( new CMultiDocTemplate() );程序运行时会出现提示,有两个文档,问我打开哪个?
并不是同时将两个文档一起打开。我该怎么办?
我试了下面办法:
例如工程名app,则在app.cpp中,
在 AddDocTemplate(pDocTemplate); 后面加一个AddDocTemplate( new CMultiDocTemplate() );程序运行时会出现提示,有两个文档,问我打开哪个?
并不是同时将两个文档一起打开。我该怎么办?
解决方案 »
- 为什么我的窗口没显示?
- Onsize()时如何解决闪烁现象?我已经使用了双缓冲,在滑块移动时没出现闪烁,但是窗口大小改变时,却闪烁了
- 问一个关于OpenGL的问题
- 请问如何判断CListCtrl单元格里是否存在图标?
- 最近刚开始学vc6.0,请问MSDN是什么啊?在哪里能获得?
- 怎么得到文档指针?
- 窗口字体
- 高分求教
- voice file convert
- 我硬盘上有 1.92G 的编程电子图书,全是精心挑选出来的,可惜我不知怎样让外人访问我的机器,因为我是通过局域网上网,主机又不让动手角,如果是拨号上网或许我还懂开个ftp或者http服务出来让大家共享,现在局域网的不会,劳烦哪位高手指点一下。
- win2k下ToolTip失效
- 为什么我调用COM时调用还示结束,就先调用后面的???
{
POSITION curTemplatePos = GetFirstDocTemplatePosition(); while(curTemplatePos != NULL)
{
CDocTemplate* curTemplate = GetNextDocTemplate(curTemplatePos); curTemplate->OpenDocumentFile(NULL);
}
}App::InitInstance()中后面修改为
/* // Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
*/
// The main window has been initialized, so show and update it.
OnFileNew();
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow(); return TRUE;