Solved

No automatic document opening on app start

Posted on 1998-12-03
1
191 Views
Last Modified: 2013-11-20
I've created a MDI App with AppWizard. How do I prevent the
program from opening a default document when starting?
0
Comment
Question by:jntv
1 Comment
 

Accepted Solution

by:
hap earned 50 total points
ID: 1325719
If you are using 5.0 or later the only changes that you have to make are in your InitInstance() member function of your application class:

After the line:
      ParseCommandInfo(cmdInfo);
and before the line:
      if (!ProcessShellCommand(cmdInfo)

add the following lines:
      // DON'T display a new MDI child window during startup!!!
      cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
 
(I don't recall how it was done previously, but I recall it was more obvious, so I'm sure that this will solve your problem)

Good Luck
Hap
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 133
Modbus - whats the maximum I can store in one register? 4 80
Fibonacci challenge 11 132
Sed question 2 100
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question