VC++编写的MFC程序不自动创建空白窗口

就是解决这样的一个问题:经常我们在MFC中创建MDI程序时,默认会打开一个空白的窗口,现在,由于某种原因,我们不需要这个窗口。

以下转自:http://jingyan.baidu.com/article/1876c852d5cba9890a13766f.html

在APP类中,在ProcessShellCommand调用之前加 cmdInfo.m_nShellCommand =CCommandLineInfo::FileNothing 。

这样就OK了。其中,CCommandLineInfo cmdInfo



你可能感兴趣的:(VC++编写的MFC程序不自动创建空白窗口)