奇了怪了 视图分割 就是出不来
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// create a static split window that 1 row 2 column
if(m_wndSplitter.CreateStatic(this,1,2,WS_CHILD|WS_VISIBLE)==NULL)
return FALSE;
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CImgListView),CSize(100,100),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CImageProcessView),CSize(100,100),pContext);
m_wndSplitter.SetColumnInfo(0,400,50);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}
程序是单文档 CImageProcessView是单文档的View,从FormView继承,CImgListView是添加的class,也是从FormView继承,对话框都是Child,Border为None的,运行也不报错,设断点运行返回都是True,而且也能走到每个View的初始化里去,但是就是界面显示只有原来的那个View。