Solved

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

Posted on 1999-01-21
2
178 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
2 Comments
 

Author Comment

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

Accepted Solution

by:
Tommy Hui earned 10 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now