Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I normally use win32 api.Since I learn mfc thia is my first mfc app.Whatever I wish to do now I can easily eadily do it with win 32 api only it will take time and that is exactly what I don't have now.

This is how I want my app to look like after completion.

Have a split window- splitted into three.The central window is home to a document view architacture template document which is the document that can be saved and loaded.The left and right window will be home to two different implentation of the template document.The implementation on the left will be printable while that in the centre and the right will be viewable only.
So every loaded frame document generates two different implementation.

Users can load new documents but I want each loaded template document that uses three plain to be. accessible by a tab.
This means each tab will consist of a split-into-three windowed document.I want each tab to bear the name of each new loaded or saved document.

I am thinking of using three different AddDocTemplate() function to add three different document/view architecture document each having it own framed window but the only disadvantage with these is that it my app will be able to load three different documemts instead of. one.


My questions are:
1. How do I orgamise my code to achieve these.
2. How can I make three different doc/view arch. document to be attached to each frame without getting three possible document types loadable when open is clicked on the menu or tool bar.
3. Finally do I need to make the window that is parent to the CSplitterWnd that is parent to each view of the split window dynamically creatable too.
4.Which is the best way to make. each three-split-window represemting each loaded or saved or new documents tabable.

Please I will appreciate all suggestions.

Thanks a lot in abvance.
Posted
Comments
Richard MacCutchan 9-Feb-14 12:30pm    
Are you trying to show three different documents, or multiple views of the same one?
Gbenbam 9-Feb-14 12:59pm    
I am trying to show different view of the same one.Just like you have in visual studio and dreameaver web development environment where you.have code view and design view only this will have three possible views.
Richard MacCutchan 9-Feb-14 13:28pm    
Then you just create CView derived classes in each split. There are a number of tutorials around on MSDN and elsewhere that show sample applications doing just that.
Gbenbam 9-Feb-14 13:34pm    
Pls can you suggest one more keywords that I use to do a search?
Gbenbam 9-Feb-14 15:56pm    
Ok.I saw an example in msdn.It is quite straight forward.But I a still interested in displaying several document of the same type.I mean the user can click open or new.When this is done my program is supposed to create a new tab bearing the name of the new document file o it or some thing like blank tab if new was clicked.I am not sure I understand the expected default response to these new and open command.I really hope I can overide them.The idea that I have is that once a new document is started and an old one is opened the address of the current document object is assigned to document pointer.
Do you have any suggestion on how I can go about implementing this.

Is it possiblr for the framework to serialize through a pointer to a documemt object rather than the document?If yes how is these done?If know how does the framework handle new and open command by default?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900