Empty MDI MainFrame

What code do I have to add to/remove from an AppWizard-prepared MDI application in order for the program to start without a new document open?
Who is Participating?
paulburnsConnect With a Mentor Commented:
In your CMyApp::InitInstance function add this code...

// Start up with no document open.
if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
  cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.