主题:CSpliterWnd问题
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
m_sp0.CreateStatic(this,1,2);
m_sp1.CreateStatic(&m_sp0,2,1,WS_VISIBLE|WS_CHILD|WS_BORDER,m_sp0.IdFromRowCol(0,0));
m_sp1.CreateView(0,0,RUNTIME_CLASS(MyView),CSize(100,100),pContext);
m_sp1.CreateView(1,0,RUNTIME_CLASS(MyView),CSize(100,100),pContext);
m_sp0.CreateView(0,1,RUNTIME_CLASS(MyView),CSize(100,100),pContext);
return true;
}
我想给每个View设定大小 结果只能看到第三个View其他两个被挤到了一边这是为什么呢??
{
m_sp0.CreateStatic(this,1,2);
m_sp1.CreateStatic(&m_sp0,2,1,WS_VISIBLE|WS_CHILD|WS_BORDER,m_sp0.IdFromRowCol(0,0));
m_sp1.CreateView(0,0,RUNTIME_CLASS(MyView),CSize(100,100),pContext);
m_sp1.CreateView(1,0,RUNTIME_CLASS(MyView),CSize(100,100),pContext);
m_sp0.CreateView(0,1,RUNTIME_CLASS(MyView),CSize(100,100),pContext);
return true;
}
我想给每个View设定大小 结果只能看到第三个View其他两个被挤到了一边这是为什么呢??