我的程序脚本
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
BOOL bRet1,bRet2;
int  nRow,nCol;
nRow=nCol=0;
if(!m_wndVSplitter.CreateStatic(this,1,2)) return FALSE;
bRet1=m_wndVSplitter.CreateView(0,1,RUNTIME_CLASS(CMyspliterView),CSize(0,0),pContext);
if(bRet1)
{
bRet2 = m_wndHSplitter.CreateStatic(&m_wndVSplitter, 2, 1,WS_CHILD | WS_VISIBLE, m_wndVSplitter.IdFromRowCol(0, 0));
if(bRet2)
{
bRet2=m_wndHSplitter.CreateView(0,0,RUNTIME_CLASS(CMyspliterView),CSize(200,300),pContext);
if(bRet2)
{
bRet2=m_wndHSplitter.CreateView(1,0,RUNTIME_CLASS(CMyspliterView),CSize(0,0),pContext);
}
}
}
m_wndVSplitter.SetColumnInfo(1,200,300);
//m_wndVSplitter.SetRowInfo(0,200,500);
m_wndVSplitter.RecalcLayout();
return TRUE;
//return CFrameWnd::OnCreateClient(lpcs, pContext);
}
为什么左边得切分窗口总是宽度是0