MFC窗口的拆分
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
CSplitterWnd m_wndSplitter;
CSplitterWnd m_wndSplitter2;
m_wndSplitter.CreateStatic(this,2, 1);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CTopView),CSize(0,20),pContext);
m_wndSplitter2.CreateStatic(&m_wndSplitter,1,2,WS_CHILD|WS_VISIBLE,m_wndSplitter.IdFromRowCol(1,0));
m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CLeftView),CSize(0,0),pContext);
m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CRightView),CSize(0,0),pContext) ;
m_wndSplitter2.SetColumnInfo(0,206,10);
return TRUE;
}
文章来源: zzzili.blog.csdn.net,作者:清雨小竹,版权归原作者所有,如需转载,请联系作者。
原文链接:zzzili.blog.csdn.net/article/details/8265446
- 点赞
- 收藏
- 关注作者
评论(0)