SDI application with 3 views [SOLVED]
-
Hi, I'm newbie here. I wanted to create a SDI MFC application with 3 views in one window. The layout is like this ======= + 1 + ------------- + 2 + 3 + ======= 1. List View 2. Tree View 3. Tab control with list view Can anyone help me on how to design this window at first place. Either using Splitter or Window Explorer option. Thank you
-
Hi, I'm newbie here. I wanted to create a SDI MFC application with 3 views in one window. The layout is like this ======= + 1 + ------------- + 2 + 3 + ======= 1. List View 2. Tree View 3. Tab control with list view Can anyone help me on how to design this window at first place. Either using Splitter or Window Explorer option. Thank you
It could be a splitter window (2 + 3) in another (1 + (2 + 3)) :)
They sought it with thimbles, they sought it with care; They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap. :)
-
Hi, I'm newbie here. I wanted to create a SDI MFC application with 3 views in one window. The layout is like this ======= + 1 + ------------- + 2 + 3 + ======= 1. List View 2. Tree View 3. Tab control with list view Can anyone help me on how to design this window at first place. Either using Splitter or Window Explorer option. Thank you
May be the solution is also thinkable for you :) : - An MDI app - The Tabed MDI list-views controlled by the selection in your tree control - The Tree control is in a pane (CDockablePane) controlled by the selection in your main list control - The Main list control is in a pane as well - The layout of the MDI-area and panes is controlled by the Users and remanent for them
They sought it with thimbles, they sought it with care; They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap. :)
-
Hi, I'm newbie here. I wanted to create a SDI MFC application with 3 views in one window. The layout is like this ======= + 1 + ------------- + 2 + 3 + ======= 1. List View 2. Tree View 3. Tab control with list view Can anyone help me on how to design this window at first place. Either using Splitter or Window Explorer option. Thank you
create three different custom window-class and create those window on the main window when required
-
Hi, I'm newbie here. I wanted to create a SDI MFC application with 3 views in one window. The layout is like this ======= + 1 + ------------- + 2 + 3 + ======= 1. List View 2. Tree View 3. Tab control with list view Can anyone help me on how to design this window at first place. Either using Splitter or Window Explorer option. Thank you
-
Hi, I'm newbie here. I wanted to create a SDI MFC application with 3 views in one window. The layout is like this ======= + 1 + ------------- + 2 + 3 + ======= 1. List View 2. Tree View 3. Tab control with list view Can anyone help me on how to design this window at first place. Either using Splitter or Window Explorer option. Thank you
-
Unless you absolutely have to have ONLY 3 views why don't you use standard CSplitter CreateStatic and create CSplitter frame with 4 views? Than let the MFC do the dirty work. No need to customize anything.
-
Great, can you share the basic idea / code? I was thinking 1 column / 3 rows would also work if it is acceptable.
I just got the idea from this article: http://www.codeproject.com/Articles/190/A-Visual-Framework-Views-Tabs-and-Splitters Basically I just wrote this in the MainFrame:
m_wndSplitterHor.CreateStatic(this, 2, 1)
m_wndSplitterHor.CreateView(0, 0, RUNTIME_CLASS(CSampleCollectList), CSize(280,300), pContext) //View 1
m_wndSplitterHor.SetColumnInfo(0, 200, 0);m_wndSplitterVer.CreateStatic(&m_wndSplitterHor, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterHor.IdFromRowCol(1, 0))
m_wndSplitterVer.CreateView(0, 0, RUNTIME_CLASS(CSampleTree), CSize(250,0), pContext) //View 2
m_wndSplitterVer.CreateView(0, 1, RUNTIME_CLASS(CSampleCollectList), CSize(250,0), pContext) //View 3But now im stuck with tab control in View 3. Any idea?