创建CFormView失败,请教!
if (!m_wndSplitter1.CreateStatic(this, 2, 1))
{
TRACE0("Failed to create splitter window\n");
return FALSE;
}
//CreateView( int row, int col, CRuntimeClass* pViewClass, SIZE sizeInit, CCreateContext* pContext );
if (!m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CTestFormView), CSize(200, 100), pContext)
||!m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CTestFormView), CSize(200, 100), pContext))
{
return FALSE;
}
return TRUE;