MDI程序
CSplitterWnd     m_splitterWnd;
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
// TODO: Add your specialized code here and/or call the base class
if( !m_splitterWnd.CreateStatic( this, 1, 2 ) )
{
return FALSE;
}
if( !m_splitterWnd.CreateView(0, 0, RUNTIME_CLASS( CLeftView ), CSize( 100,100 ), pContext ) )
{
return FALSE;
}
if( !m_splitterWnd.CreateView(0, 1, RUNTIME_CLASS( CControlView ), CSize( 100,100 ), pContext ) )
{
return FALSE;
}
return TRUE;
return CMDIFrameWnd::OnCreateClient(lpcs, pContext);
}//CLeftView 派生于CView 
//CControlView 派生于CFromView编译通过但运行出错,这是什么原因?