mfc >> Creating Multiple Splitter Views in a Single Document MFC project

by ssylee » Thu, 19 Mar 2009 06:22:56 GMT

I have created a new MFC project, with the application type being
"single document" type. While I have been able to create 4 views as
well as 2 views with ease, I have had a lot of trouble creating
splitters for 3 views. Is there any easy way of creating 3 views in
this type of MFC project? Thanks.

Similar Threads

1. Multiple views Single Document MDI - no splitter views

2. looking for sample:multiple view single document in C# or VB

I am looking for sample of an application similar to outlook regarding UI

when user select a tree node in the left pane a view is changed in the right

(it does not necessarily support  MFC doc view architecture )

thanks in advance

3. Multiple views Single Document MDI

4. multiple view single document

Could some out point out to me how i can make a multiple view single doc
suppose i have 2 view and want to use the same CDocument

could anyone give me pointers


5. How to have a form type window in MFC Single Document view window

6. Multiple Views: how to open both views at startup or on new document

Following the CHKBOOK sample in MSDN I finally have two
different views associated with the same document, and working
simultaneously. The problem is that when I run my program I
only get the first view. The second view only appears when I
*open* a document from a file, and not when I start a new one.

The cause is no wonder, because the piece of code that opens
the second view is only inside the OpenDocumentFile() function.
That makes sense in the sample, which is designed to work always
on a file (either is opens an existing file, or it creates a new

Q: What code should I add where, for my application to open both
views on a *new* document?

Furthermore, I have learnt that you can resize a view by calling
its parent frame's MoveWindow() function. I would like to size
each of my two views to a certain desired size at startup. What is
the appropriate place to add this code?

7. When To Initialize View Controls In a Document View MFC Architecture

8. N-tier single project or multiple projects?

For your N-tier solutions.  Have you architected your UI, Business, and
DAL layers into one single project or have you separated them out into
separate projects?  What would be the benefits of having all 3 layers
in one project vs breaking them out to there own separate projects?