Solved

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

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sum28 challenge 31 112
wordappend challenge 8 181
wordmultiple challenge 12 136
Remove Password Protection from pdf (with password) using an command line executable 5 52
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 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