How to show 3 different views in 3 subpanels in right panel by using splitterwnd?

Tech-Archive recommends: Fix windows errors by optimizing your registry



if (!m_nwSplitter.CreateStatic (this, 1, 2)||
!m_nwSplitter.CreateView (0, 0, RUNTIME_CLASS (CNetworkTree),CSize (220,0), pContext))
{
return FALSE;
}


if (!m_nwSplitter2.CreateStatic(&m_nwSplitter, 3, 1,WS_CHILD | WS_VISIBLE| WS_BORDER,m_nwSplitter.IdFromRowCol(0, 1))||
!m_nwSplitter2.CreateView(0,0,RUNTIME_CLASS(CNetworkVwList),CSize(0,200), pContext)||
!m_nwSplitter2.CreateView(1,0,RUNTIME_CLASS(CSWPlanView),CSize(0,200), pContext)||
!m_nwSplitter2.CreateView(2,0,RUNTIME_CLASS(CTaskListView),CSize(0,0), pContext))
{
return FALSE;
}


before the code was like
CView * pane2 = (CView *)pNwViews->GetPane(0,1);

now i want to show one view in right panel ie in m_nwSplitter2.CreateView(0,0,...)..

i wrote like CView * pane2 = (CView *)pNwViews->GetPane(0,0);

but its not working...
plz help me...
thanx in advance..

.