Solved

multiple docs in a splitter window

Posted on 1998-10-16
4
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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