multi-CSplitterWnd question
Doncho Angelov -- alian@plovdiv.techno-link.com Tuesday, January 28, 1997 Environment: VC++ 4.0, Win 95 Hi everyone ! I would like to ask if osmebody knows how I can implement = multiple-splitting of a window. I have in mind this: I split once the window with static splitter horizontally, and after = that I would like to split the RIGHT side of the static splitter again = (I would appreciate if somebody can tell me how I can realize both = dynamic and static splitting of the RIGHT splitter side). Doncho
Bing Hou -- hou@tfn.com Wednesday, January 29, 1997 [Mini-digest: 4 responses] Doncho, Add a second splitter window object to your class, and use it like this, in the OnCreateClient function: m_wndSplitterRight.CreateStatic(&m_wndSplitterMain, ...); Bing Hou hou@tfn.com ======================================================================= Be like a postage stamp - stick to one thing until you get there. - Margaret Carty ======================================================================= ______________________________ Reply Separator _________________________________ Subject: multi-CSplitterWnd question Author: Doncho Angelovat Internet Date: 1/28/96 4:35 PM Environment: VC++ 4.0, Win 95 Hi everyone ! I would like to ask if osmebody knows how I can implement = multiple-splitting of a window. I have in mind this: I split once the window with static splitter horizontally, and after = that I would like to split the RIGHT side of the static splitter again = (I would appreciate if somebody can tell me how I can realize both = dynamic and static splitting of the RIGHT splitter side). Doncho -----From: "John R. Hamilton" Doncho, I am also investigating splitter windows as well. However, I have not spent much time doing so yet. Although, I have found the sample file on the MSVC ++ V4.1 CD-ROM to be quite helpful --- it specifically concentrates on splitter frames. Sample file on the CD-ROM --- VIEWX Check it out !! John ---------- > From: Doncho Angelov > To: 'MFC-L' > Subject: multi-CSplitterWnd question > Date: Sunday, January 28, 1996 8:35 AM > > Environment: VC++ 4.0, Win 95 > > Hi everyone ! > > I would like to ask if osmebody knows how I can implement = > multiple-splitting of a window. I have in mind this: > I split once the window with static splitter horizontally, and after = > that I would like to split the RIGHT side of the static splitter again = > (I would appreciate if somebody can tell me how I can realize both = > dynamic and static splitting of the RIGHT splitter side). > > Doncho > -----From: solset@cais.com (William Drew) >I would like to ask if osmebody knows how I can implement =3D >multiple-splitting of a window. I have in mind this: >I split once the window with static splitter horizontally, and after =3D >that I would like to split the RIGHT side of the static splitter again =3D >(I would appreciate if somebody can tell me how I can realize both =3D >dynamic and static splitting of the RIGHT splitter side). > Not quite sure exactly what layout you're after but you need to override CMDIChildWnd::OnCreateClient(). I know that there's some sample code somewhere on the MSDN. If you don't have access to that let me know and I'll mail you a snippet that uses 4 splitters and it'll show you how to embed splitters in splitters. --------------------- William J. Drew Solution Set, Inc. solset@cais.com Environment: VC++ 4.2 NT 4.0 (1381). -----From: "Muralidhar.HV" Doncho Angelov wrote: > > Environment: VC++ 4.0, Win 95 > > Hi everyone ! > > I would like to ask if osmebody knows how I can implement = > multiple-splitting of a window. I have in mind this: > I split once the window with static splitter horizontally, and after = > that I would like to split the RIGHT side of the static splitter again = > (I would appreciate if somebody can tell me how I can realize both = > dynamic and static splitting of the RIGHT splitter side). > > Doncho ============================================ I am not able to exactly figure out the way you want to split I am presenting a part of code which I have usedin my application. My splitter Looks like this __________________ | | | |View1 | View 2 | |_______|_________| | | | View 3 | |_________________| // MainFrm.h CSplitterWnd m_wndSplitter; CSplitterWnd m_wndSplitPane1; // MainFrm.cpp BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { // TODO: Add your specialized code here and/or call the base class //Create a splitter with 2 rows, 1 coloumn if (!m_wndSplitter.CreateStatic(this, 2, 1)) { TRACE0("Failed to CreateStaticSplitter\n"); return FALSE; } // Create a NESTED splitter (with in 1st Splitter) - 1 row 2 cols if (!m_wndSplitPane1.CreateStatic( &m_wndSplitter, // our parent 1, 2, // the new splitter is 1 row, 2 cols WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_BORDER, // style m_wndSplitter.IdFromRowCol(0, 0) )) { TRACE0("Failed to Create nested Splitter\n"); return FALSE; } // add the first View - row 0, col 0 if (!m_wndSplitPane1.CreateView(0, 0, RUNTIME_CLASS(CExView1), CSize(150, 0), pContext)) { TRACE0("Failed to Create First View\n"); return FALSE; } // add the second View - row 0, col 1 if (!m_wndSplitPane1.CreateView(0, 1, RUNTIME_CLASS(CExView2), CSize(0,0), pContext)) { TRACE0("Failed to Create Second View\n"); return FALSE; } // add the third view - Row2 if (!m_wndSplitter.CreateView(1,0, RUNTIME_CLASS(CExView3), CSize(0,0), pContext)) { TRACE0("Failed to Create third View\n"); return FALSE; } return TRUE; } I Hope this Part of Code will help you, Murali,
Gururaja D. -- gururaja@aditi.com Thursday, January 30, 1997 [Mini-digest: 2 responses] Hi Doncho, There is a sample in MSDN which explains as how to implement a 3 way splitter. VIEWEX has sample code and project to accomplish this. Please see if it helps you. But here all the 3 views are implemented using static splitter. If you don't have MSDN (OCT 1996) let me know , I'll give code which I've implemented for one of my project. I've implemented it to look like. A Splitter with two views Horizontally. Then the RIGHT view is split vertically to have 3 views in total. Hope this helps Gururaja Aditi Corp Gururaja " IF ANYBODY LIKES YOU IT'S HIS WEAKNESS, IF ANYBODY DEPENDS ON YOU IT'S YOUR GREATENESS" ************************************************************************* ********* Gururaja Gururaja Software Engineer 70 Aditi Technologies Private Limited. 4th cross 224/16 SBM colony Ramana Maharishi Road BSK I stage Bangalore 560080 (Near Sitha Circle) Tel: (9180) 3312966/67/68 Bangalore >---------- >From: Doncho Angelov[SMTP:alian@plovdiv.techno-link.com] >Sent: Sunday, January 28, 1996 10:05 PM >To: 'MFC-L' >Subject: multi-CSplitterWnd question > >Environment: VC++ 4.0, Win 95 > >Hi everyone ! > >I would like to ask if osmebody knows how I can implement = >multiple-splitting of a window. I have in mind this: > I split once the window with static splitter horizontally, and after = >that I would like to split the RIGHT side of the static splitter again >= >(I would appreciate if somebody can tell me how I can realize both = >dynamic and static splitting of the RIGHT splitter side). > >Doncho > > -----From: "Gururaja D."Hi Doncho, There is a sample in MSDN which explains as how to implement a 3 way splitter. VIEWEX has sample code and project to accomplish this. Please see if it helps you. But here all the 3 views are implemented using static splitter. If you don't have MSDN (OCT 1996) let me know , I'll give code which I've implemented for one of my project. I've implemented it to look like. A Splitter with two views Horizontally. Then the RIGHT view is split vertically to have 3 views in total. Hope this helps Gururaja Aditi Corp Gururaja " IF ANYBODY LIKES YOU IT'S HIS WEAKNESS, IF ANYBODY DEPENDS ON YOU IT'S YOUR GREATENESS" ************************************************************************* ********* Gururaja Gururaja Software Engineer 70 Aditi Technologies Private Limited. 4th cross 224/16 SBM colony Ramana Maharishi Road BSK I stage Bangalore 560080 (Near Sitha Circle) Tel: (9180) 3312966/67/68 Bangalore >---------- >From: Doncho Angelov[SMTP:alian@plovdiv.techno-link.com] >Sent: Sunday, January 28, 1996 10:05 PM >To: 'MFC-L' >Subject: multi-CSplitterWnd question > >Environment: VC++ 4.0, Win 95 > >Hi everyone ! > >I would like to ask if osmebody knows how I can implement = >multiple-splitting of a window. I have in mind this: > I split once the window with static splitter horizontally, and after = >that I would like to split the RIGHT side of the static splitter again >= >(I would appreciate if somebody can tell me how I can realize both = >dynamic and static splitting of the RIGHT splitter side). > >Doncho > >
| Вернуться в корень Архива |