Multiple View Application
-
The problem given to me is to build a MFC app , which should have multiple child windows same as in a typical MDI , but all the views should be connected to single instance of Document class, Something you can give a name Multiple Views Application, that is one document and multiple views. I am not suppose to use splitters where in I can create multiple views in CFrameWnd::OnCreateClien(). Does some one has a clue about how to go about >? Abhishek Narula "Learn to appreciate others ... World would appreciate you"
-
The problem given to me is to build a MFC app , which should have multiple child windows same as in a typical MDI , but all the views should be connected to single instance of Document class, Something you can give a name Multiple Views Application, that is one document and multiple views. I am not suppose to use splitters where in I can create multiple views in CFrameWnd::OnCreateClien(). Does some one has a clue about how to go about >? Abhishek Narula "Learn to appreciate others ... World would appreciate you"
Override CMultiDocTemplate::OpenDocumentFile. This method is called when your app opens file from disk or creates new file. Before calling original implementation, check if any document is open and close it. Tomasz Sowinski -- http://www.shooltz.com
-
Override CMultiDocTemplate::OpenDocumentFile. This method is called when your app opens file from disk or creates new file. Before calling original implementation, check if any document is open and close it. Tomasz Sowinski -- http://www.shooltz.com
No you didnt get the problem , I have to have 4 views opened simultaneously , in a different windows. but all 4 view are supposed to be connected to same Doc class . Am I able to explain it now ? Abhishek Narula "Learn to appreciate others ... World would appreciate you"
-
No you didnt get the problem , I have to have 4 views opened simultaneously , in a different windows. but all 4 view are supposed to be connected to same Doc class . Am I able to explain it now ? Abhishek Narula "Learn to appreciate others ... World would appreciate you"
Abhishek Narula wrote: No you didnt get the problem , I think I got it. Create MDI app. When user opens/creates new document, you have to do the following: 1) ensure that previously active document is closed. 2) open additional 3 views (or whatever number is needed) Overriden CMultiDocTemplate::OpenDocumentFile is the perfect place to put this functionality. Tomasz Sowinski -- http://www.shooltz.com