同意楼上的.
重载OnFileNew(),看看
重载OnFileNew(),看看
解决方案 »
- 菜鸟问题:关于send(),recv()
- 随机数产生问题?30个数(数组表示)中要求有25个1,5个0,如何实现产生这样的随机数100个,循环次数不限?在线,谢
- 散分
- error LNK2001: unresolved external symbol "__declspec<dllimport> public: void __thiscall _STL::_STLP_alloc_proxy<unsigned short
- 急问各位一个安装问题
- 散分了,机不可失,时不再来
- 要交报告了,大家帮忙看看呀!
- 请问<<windows95>>程序设计是不是绝版了,我怎么也找不到?还有没有类似的关于windows编程的经典?
- 基于dialog的程序,当鼠标移动到button上时,改变该button的caption,,
- 如何在FormView中显示汉字
- 超级难题,我该怎么办?????????????
- CArchive的问题,如何利用这种机制在存取文件。
if (!ProcessShellCommand(cmdInfo))
之前,将
cmdInfo.m_nShellCommand
赋为一下你想要的值
enum{
FileNew,
FileOpen,
FilePrint,
FilePrintTo,
FileDDE,
FileNothing = -1
};
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
之后加入cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
{
if (!CDocument::OnNewDocument())
return FALSE; // TODO: add reinitialization code here
//(SDI documents will reuse this document) return TRUE;
}
那现在如何改呢?
BOOL CMyApp::InitInstance()
{
//...
CCommandLineInfo cmdInfo;
//______________________
cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing; //need to be added!
//_______________________ParseCommandLine(cmdInfo);if(!processShellCommand(cmdInfo))
return false;
//...
}