Splitter windows, Multiple Doc Templates - Help! 
Author Message
 Splitter windows, Multiple Doc Templates - Help!

My application has a CRichEditView derived View pane.
At other times I replace the above with a splitter window with a CView
derived class View, which has the CRichEditView as one of its panes.

My Doc class must be CRichEditDoc derived to support the CRichEditView View.
But that gives me problems when I switch views. (App doesn't shut down
On the other hand, a plain CDocument Doc class supports view switching, but
causes crashes when for example focus is on the CRichEditView View, and the
view menu is selected. (Assertion - Doc isn't CRichEditDoc derived).

I thought perhaps i should register two document templates. However, though
I'm switching views, I want the data in the document to persist.
Is it possible to switch templates (and so Doc types) when changing views?
If so, how can I efficiently make my data persist between docs?

Or is there a simpler way to solve this problem?

Hope that made sense...
Thanks for help,

Sun, 11 Sep 2005 22:31:36 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Multiple Doc Templates with a single Doc class

2. Help: Multiple Doc Templates In SDI App

3. Need sample for single doc, multiple view (not splitter views)

4. closing multiple doc templates

5. Multiple Doc.Template Question.

6. MFC App with multiple doc templates

7. MDI w/ multiple doc templates

8. One doc template with multiple views

9. Multiple doc templates in an SDI application?

10. Does a Splitter Window have to have a Doc and View

11. SDI Splitter window with multiple views

12. multiple views inside a frame window without splitters


Powered by phpBB® Forum Software