关于窗口分割编译没错但运行有问题?????
将窗寇分为三行,第0,2行只有1列,第1行再分为2列,程序编译没问题,可是运行不了,大家帮忙看看吧...BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{//创建一个静态分栏窗口,分为三行一列
if(m_wndSplitter1.CreateStatic(this,3,1)==NULL)
return FALSE;
//将CCuteFTPView连接倒0行0列窗格上
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CCuteFTPView),CSize(100,100),pContext);
//将CView1连接到0行2列
m_wndSplitter1.CreateView(2,0,RUNTIME_CLASS(CView1),CSize(100,100),pContext);
//将第1行0列再分为1行2列
if(m_wndSplitter2.CreateStatic(&m_wndSplitter1,1,2,WS_CHILD|WS_VISIBLE,m_wndSplitter1.IdFromRowCol(1,0))==NULL)
return FALSE;
//将CView2连接到第二个分栏对象的0行0列
m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CView2),CSize(400,300),pContext);
//将CView3连接到第二个分栏对象的0行1列
m_wndSplitter2.CreateView(1,1,RUNTIME_CLASS(CView3),CSize(400,300),pContext);
return TRUE;
}