15,979
社区成员
发帖
与我相关
我的任务
分享
// TODO: 在此添加专用代码和/或调用基类
if(this->m_MySplitter.CreateStatic(this,2,2))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
if (!m_MySplitter.CreateView(0, 0,
RUNTIME_CLASS(CVSView), CSize(40, 40), pContext))
{
TRACE0("Failed to create first pane\n");
return FALSE;
}
if (!m_MySplitter.CreateView(0, 1,
RUNTIME_CLASS(CViewTwo), CSize(40, 40), pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}
if (!m_MySplitter.CreateView(1, 0,
RUNTIME_CLASS(CViewThree), CSize(40, 40), pContext))
{
TRACE0("Failed to create third pane\n");
return FALSE;
}
if (!m_MySplitter.CreateView(1, 1,
RUNTIME_CLASS(CViewFour), CSize(40, 40), pContext))
{
TRACE0("Failed to create fourth pane\n");
return FALSE;
}
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
// 窗口拆分
CSplitterWnd m_MySplitter;