Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

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?
0
Lescha
Asked:
Lescha
1 Solution
 
paulburnsCommented:
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;
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now