//分割成一行三列
m_wndSplitter.CreateStatic(this,1,3);
//第0列和第1列
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftFormView2),CSize(400,400),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext);
//将第0行2列再分开2行1列
m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 2)); m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CGraphView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CLeftFormView3),CSize(300,230),pContext);
这样子编译是正确的,确实分割成功了。问题来了:我想将0行1列 也就是第二列也分成两行:于是这样修改代码:
//分割成一行三列
m_wndSplitter.CreateStatic(this,1,3);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftFormView2),CSize(400,400),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext);
m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 2));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CGraphView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CLeftFormView3),CSize(300,230),pContext); m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 1));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CBView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CCView),CSize(300,230),pContext);
始终无法成功,把“m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext)”这句话去掉也不可以我想请问 如何将分割成一行三列的视图的第二列也切分成2个呢?
m_wndSplitter.CreateStatic(this,1,3);
//第0列和第1列
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftFormView2),CSize(400,400),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext);
//将第0行2列再分开2行1列
m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 2)); m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CGraphView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CLeftFormView3),CSize(300,230),pContext);
这样子编译是正确的,确实分割成功了。问题来了:我想将0行1列 也就是第二列也分成两行:于是这样修改代码:
//分割成一行三列
m_wndSplitter.CreateStatic(this,1,3);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftFormView2),CSize(400,400),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext);
m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 2));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CGraphView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CLeftFormView3),CSize(300,230),pContext); m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 1));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CBView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CCView),CSize(300,230),pContext);
始终无法成功,把“m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext)”这句话去掉也不可以我想请问 如何将分割成一行三列的视图的第二列也切分成2个呢?
解决方案 »
- 关于SNMP的
- VC++6.0中关于处理串口数据包问题
- 我现在写一个非专业的硬盘读写速度测试程序...问题是。。。->
- 请问大家,如何在进程的一页中查找和读取字符串值。
- 求com技术内幕源代码?
- 关于CRichEditCtrl滚动条的问题
- 网络编程的起步
- MFC 实现可以擦除整条笔迹的大橡皮擦 我没分了 好心的牛人请帮忙 感谢了!
- 在vc中如何将字符串转化成其对应的ascii码?用什么函数?
- 20分,请教怎么样自定义一个函数(包括定义和内容,代码都在哪个文件的什么位置)?
- 帮我看看这位段代码的错误信息,应该怎么解决啊
- VC6里面GetMenu()->GetSubMenu(),到VS08以后的版本不能用了怎么搞
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CAView),CSize(600,250),pContext)这个要去掉才行
m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CBView),CSize(300,200),pContext);
m_wndSplitter2.CreateView(1,0,RUNTIME_CLASS(CCView),CSize(300,230),pContext); 请高手帮忙啊