?
Solved

How to create a new MDI child window with a specified file?

Posted on 1999-01-21
2
Medium Priority
?
235 Views
Last Modified: 2013-11-20
Hi,

Well.. my question is : Would it be possible to create a
new MDI document with a specified file? You'll say : "Hey!
simply call the OnFileOpen function..." well.. no because
I don't want the "SelectFile" dialog to appear, I just want to open a specified file and automatically load it in a new MDI child window.
How's it possible?

Thanks!

David Marquis
0
Comment
Question by:dmarquis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:dmarquis
ID: 1328152
Edited text of question
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 20 total points
ID: 1328153
Get the document template pointer (see you app's InitInstance()). From that pointer, call OpenDocumentFile(). For more information, see CDocTemplate::OpenDocumentFile().
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

770 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