DEBUG ASSERTION FAILED from c:...../mfc/winsplitt.cpp
Problem where iam facing i have marked it with bold in below code
Code:
BOOL CSplitter_Main::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if(!m_wndSplitter.CreateStatic(this, 2, 1)) //, // TODO: adjust the number of rows, columns
{
return FALSE ;
}
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CEntityTreeView), CSize(170, 550), pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}
// add the second splitter pane - the default view in row 1
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CScenGenView), CSize(150,550), pContext))
{
TRACE0("Failed to create first pane\n");
return FALSE;
}
m_wndSplitter1.CreateStatic(&m_wndSplitter, 2,1 , WS_CHILD|WS_VISIBLE|WS_BORDER|WS_MAXIMIZE, AFX_IDW_PANE_FIRST ) ;
// add the first splitter pane - an input view in row 0
if (!m_wndSplitter1.CreateView(0,0, RUNTIME_CLASS(CEntityListView), CSize(150,550), pContext))
{
TRACE0("Failed to create first pane\n");
return FALSE;
}
SetActiveView((CView*)m_wndSplitter.GetPane(0,1));
return TRUE;
}

