Hi there. I'm making a basic program that is based on a CTreeView (I'm using MFC) and I want a splitter to divide left and right, with the right side as a CRichEditView. Here is what I am using:

Code:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	if(!m_splitterWnd1.CreateStatic(this, 1,2) ||
	   !m_splitterWnd1.CreateView(0, 0, RUNTIME_CLASS(CMyRichEditView), CSize(100,0), pContext)) 
		{
			return FALSE;
		}		
	return TRUE;
}
and when I run and debug it, it brings up the Winsplit.cpp file and the code is:

Code:
if (GetDlgItem(IdFromRowCol(nRow, nCol)) != NULL) 
{
    TRACE2(/* A Message Here (Didn't want to type it) */);
    /* ERROR ON THIS LINE */ ASSERT(FALSE);
    return FALSE;
}
I have also tried using CreateStatic() instead of Create() for the splitter. It only shows the error when I add the line that calls CreateView(). PLEASE help. I want to figure this out =)!