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

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
dmarquisAsked:
Who is Participating?
 
Tommy HuiEngineerCommented:
Get the document template pointer (see you app's InitInstance()). From that pointer, call OpenDocumentFile(). For more information, see CDocTemplate::OpenDocumentFile().
0
 
dmarquisAuthor Commented:
Edited text of question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.