15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CRect rect;
GetClientRect(&rect);
CSize size(rect.Width()/3,(rect.Height()-46)/2);
// create m_wndSplitter 2,3
if (!m_wndSplitter.CreateStatic(this, 2,3)) return FALSE;
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CYaChangeSplitView), size, pContext);
m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CYaChangeSplitView), size, pContext);
m_wndSplitter.CreateView(0, 2, RUNTIME_CLASS(CYaChangeSplitView), size, pContext);
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CYaChangeSplitView), size, pContext);
m_wndSplitter.CreateView(1, 1, RUNTIME_CLASS(CYaChangeSplitView), size, pContext);
m_wndSplitter.CreateView(1, 2, RUNTIME_CLASS(CYaChangeSplitView), size, pContext);