我新建了一个MFC单文档工程,
然后想用CSplitterWnd类生成左右分割的界面,
左边是继承自CFormView类的CFormCommandView类的对话框,
右边是继承自CScrollView类的CRenderView类视图,
我定义CMainFrame的OnCreateClient函数如下:
BOOL   CMainFrame::OnCreateClient(LPCREATESTRUCT   lpcs,   CCreateContext*   pContext)     
  {   
  //   TODO:   Add   your   specialized   code   here   and/or   call   the   base   class   
  if(!m_wndSplitter.CreateStatic(this,1,2,WS_CHILD|WS_VISIBLE))   
  {   
  TRACE("Failed   to   createstaticSplitter\n");   
  return   FALSE;   
  }   
  if(!m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CFormCommandView),   
  CSize(200,160),pContext))   
  {   
  TRACE("FAILED   TO   CREATE   COMMAND   VIEW   PANE\n");   
  return   FALSE;   
    
  }   
  if(!m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CRenderView),CSize(200,160),   
  pContext))   
  {   
  TRACE("Failed   to   create   preview   pane\n");   
  return   FALSE;   
  }   
  return   TRUE;   
    
  }   
    
。到此为止,是我所做的步骤,然后我编译,运行,
却弹出错误警告,我选忽略,就弹出信息说“建立空文档失败”,请大家指教,为什么会这样