Solved

multiple docs in a splitter window

Posted on 1998-10-16
4
195 Views
Last Modified: 2013-11-20
I want something like a splitter window, but that has a
doc/view in the left pane, and one of several doc/view
combinations in the right pane.

Basically, I'm going to have a tree control on the left.
Depending on what is selected and a menu choice, there will
be distinctly different data sets on the right.  I would
like to be able to have a separate document for each.  Each
doc then would also have its own corresponding view.

I have an SDI app that has one document, a left view, and
multiple right views that can be swapped around.  My problem
is that I'm not sure how to have multiple docs.  Thanks!
0
Comment
Question by:eric_m
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
psdavis earned 50 total points
ID: 1323434
To have multiple documents inside of only one frame, you can override the CMultiDocTemplate and see how they add the first document.  Then you will want to add multiple documents in the same fashion.  You will probably need to switch to a MDI instead.

Also look out at www.codeguru.com and see what they have concerning multiple documents.  There are a few articles on it.

Good luck, this is a very Non-trivial problem and has been a large task of mine as well.

Phillip
0
 

Author Comment

by:eric_m
ID: 1323435
Thanks!
0
 

Author Comment

by:eric_m
ID: 1323436
> Good luck, this is a very Non-trivial problem and has been a
> large task of mine as well.

I've decided to stick with the SDI interface.  I only want
one document frame.  Since I can't easily have multiple
docs, I've turned my one doc into a state machine ala GOF's
state pattern so that it behaves like I'm using multiple
docs.

I've got my proof-of-concept app up and running now.  It's a
breeze.  I'd still be playing around with overriding
document templates if I had gone the MDI route.  :)

Again, thanks for your help, Phillip!

0
 
LVL 7

Expert Comment

by:psdavis
ID: 1323437
Good for you!  You're right about still overriding the MDI templates, it's been a pain for us (but has produced some incredible results!)
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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