CFormView加入CSplitterWnd里失败,该怎么解决

CFormView加入CSplitterWnd里失败,?
C/C++ code

BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
    m_splitter.CreateStatic(this,1,2);
    m_splitter.CreateView(0,0,RUNTIME_CLASS(CChsView),CSize(100,100),pContext);
    m_splitter.CreateView(0,1,RUNTIME_CLASS(CInfoDlg),CSize(100,100),pContext);
}



第3行代码出错,位置viewform.cpp,ling 69.(vc6).
具体为:BOOL CFormView::Create(LPCTSTR /*lpszClassName*/, LPCTSTR /*lpszWindowName*/,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext)函数。
下面的ASSERT(FALSE)处。
#ifdef _DEBUG
// dialog template must exist and be invisible with WS_CHILD set
if (!_AfxCheckDialogTemplate(m_lpszTemplateName, TRUE))
{
ASSERT(FALSE); // invalid dialog template name
PostNcDestroy(); // cleanup if Create fails too soon
return FALSE;
}
#endif //_DEBUG

CInfoDlg就是一个对话框模板,新建了一个类,基类CFormView,没写任何代码

------解决方案--------------------
dialog template must exist and be invisible with WS_CHILD set
这已告诉原因了,你把对话框设成child试试,让对话框是子对话框