|

楼主 |
发表于 2019-10-30 01:46:14
|
显示全部楼层
本帖最后由 cheating_plugin 于 2019-10-30 01:47 编辑
如果大哥们不愿意下载,我直接把我改的代码粘贴出来:
// and finally, create the splitter with the frame as
// the parent
m_wndSplitter.CreateStatic(m_pFrameWnd, 2, 1);
// 这里的代码是 Syc大佬 的代码 ,分割2个单元
/*m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMyListView), CSize(500,300), &ctxList);
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CMyEditView), CSize(500,100), &ctxEdit);*/
//这里是我的代码,分割窗口4个单元,大哥帮瞧瞧吧。
if (m_wndSplitter1.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 0)) == NULL)
return FALSE;
m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CMyListView), CSize(250, 300), &ctxList);
m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CMyListView), CSize(250, 300), &ctxList);
if (m_wndSplitter2.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitter.IdFromRowCol(1, 0)) == NULL)
return FALSE;
m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(250, 100), &ctxEdit);
m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CMyEditView), CSize(250, 100), &ctxEdit); |
|