I am working with MFC MDI. I need to create views as follow. My ChildWnd is splitted in 2 parts. They are LeftView which is a CView and RightView which is a CScrollView. The LeftView is splitted in 2 parts, the TreeView and the the FormView. How can I do that?
_________________________________
| | |
| | |
|CTreeView | |
| | |
| | |
| | CScrollView |
|___________| |
| | |
| | |
|CFormView | |
| | |
| | |
----------------------------------
I finally solved this problem. I wrote the solution for anyone who has a similar problem.
In CChildFrame class, declare CSplitterWnd m_SplitterWnd;
In CChildFrame ::OnCreateClient put the following code:
CLeftView is an MFC CView derived class.
In CLeftView declare a member variable CSplitterWnd m_SplitterWnd;
In CLeftView::OnCreate, add the following code:
CPhongInfo is a CFormView derived class, CPhong View is a CTreeView class.
In CLeftView::OnSize, put the following code