Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

MFC Multiple Views / Same Doc Question

This topic is 2784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(IDR_SimTYPE,
RUNTIME_CLASS(CSimDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CSimView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);

pDocTemplate = new CMultiDocTemplate(IDR_SimTYPE,
RUNTIME_CLASS(CSimDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CMyDataView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);






Compiler: VS2008 SP1
OS: Win7 Ultimate 64-bit

Hi,
From the code snippet above, the application starts by asking me which view do I want to use before the "actual" window comes up, I wonder how do I make an application so that it starts in its own window with two seperate but unique views inside it. How do I write the above application?
I have created a secondary class called CMyDataView which inherits from CView.
I'd like to write a concurrent application that runs 2 views simultaneously.
Thanks
Jack

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!