Click to See Complete Forum and Search --> : 2 views, 2 windows, 1 document
LeighNorris
May 5th, 1999, 01:22 PM
I'm trying to create 2 windows (each a different view) for
1 document. The only way I've see to do something similar
is to use a Splitter Window. But I want the views to be in
their own windows instead of sharing 1 frame. Could anyone
help me find examples of this?
Thanks.
Shawn Fessenden
May 5th, 1999, 02:01 PM
No problem. Here's a splat from the VC 5 docs. If this is what you're looking for, search on "multiple views of same document":
Many documents require only a single view, but it is possible to support more than one view of a single document. To help you implement multiple views, a document object keeps a list of its views, provides member functions for adding and removing views, and supplies the UpdateAllViews member function for letting multiple views know when the document's data has changed.
"Geek used to be a four-letter word. Now it's a six-figure one."
victoriach
October 13th, 1999, 02:48 AM
Hi!
I have done something similar you need I think.
1. You should create two different template
(CYourDoc+CYourView1, CYourDoc+CYourView2), to get pointer_Template1,pointer_Template2.
2. To create child window eatch with their own view:
((CDocTemplate*)(pointer_Template1)
->OpenDocumentFile(NULL);
((CDocTemplate*)(pointer_Template2)
->OpenDocumentFile(NULL);
I you will find better desicion replay me.
Victoria
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.