?
Solved

multiple docs in a splitter window

Posted on 1998-10-16
4
Medium Priority
?
218 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 200 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

770 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