15,978
社区成员
发帖
与我相关
我的任务
分享
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CRect rc;
GetClientRect(&rc);
CSize panesize(rc.Width(),rc.Height()/2);
m_wndSplitter.CreateStatic(this, 2, 1);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CSplitterWindowView1),panesize,pContext);
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CSplitterWindowView2),panesize,pContext);
return TRUE;
}