Solved

multiple docs in a splitter window

Posted on 1998-10-16
4
173 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 147
xyBalance chalenge 58 88
mixString challenge 36 98
ODBC Connection Logging, ADO.NET 6 49
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now