我想静态拆封分为:3行,且第2行又拆分为2列,即:
----------------------
| |
| |
----------------------
| | |
| | |
----------------------
| |
| |
----------------------如何写代码?谢谢!我这么写没有实现这个样子BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if( !m_wndSplitter.CreateStatic(this, 3, 1) ||
!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext) ||
!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext) ||
!m_wndSplitter.CreateView(2, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext)
)
{
return false;
} if( !m_wndSplitter2.CreateStatic(m_wndSplitter.GetPane(1, 0), 1, 2) ||
!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(0, 0), pContext) ||
!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CMyEditView), CSize(0, 0), pContext)
)
{
return false;
} return true;
}
----------------------
| |
| |
----------------------
| | |
| | |
----------------------
| |
| |
----------------------如何写代码?谢谢!我这么写没有实现这个样子BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if( !m_wndSplitter.CreateStatic(this, 3, 1) ||
!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext) ||
!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext) ||
!m_wndSplitter.CreateView(2, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext)
)
{
return false;
} if( !m_wndSplitter2.CreateStatic(m_wndSplitter.GetPane(1, 0), 1, 2) ||
!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(0, 0), pContext) ||
!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CMyEditView), CSize(0, 0), pContext)
)
{
return false;
} return true;
}
解决方案 »
- vs2005如何设置requireAdministrator选项
- 兔子党 插件 测试贴
- 求助,snmp开发中用agent++中的do_process_request处理getbulk,程序崩溃
- cdma 接收短信 大于140bytes如何办? 什么时候可以在发送第一条短信后发送第二条? 群发是不是逐个发送?
- 如何创建线程时复制主进程的数据段,使线程能象unix子进程一样?
- 100分求:关于Bitmap的超简单问题
- 各位大侠,Win98下关闭socket是不是需要一段时间?
- 求助VC6.0高手:一個苦惱的問題
- 郁闷ing...
- FlyNow进来拿分
- 刚才发现一个搞笑的事情
- 请教如何用VS2005制作安装包,使得安装包在安装的时候运行里面的批处理程序?
!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext) ||
!m_wndSplitter.CreateView(2, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext)
)
{
return false;
} if( !m_wndSplitter2.CreateStatic(m_wndSplitter.GetPane(1, 0), 1, 2) ||
!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CMyEditView), CSize(0, 0), pContext) ||
!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CMyEditView), CSize(0, 0), pContext)
)
{
return false;
}
这样试试 我没试
!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(C***View1), CSize(128, 128), pContext) ||
!m_wndSplitter.CreateView(2, 0, RUNTIME_CLASS(C***View3), CSize(128, 128), pContext)
)
{
return false;
} if( !m_wndSplitter2.CreateStatic(m_wndSplitter.GetPane(1, 0), 1, 2) ||
!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(C***View21), CSize(0, 0), pContext) ||
!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(C***View22), CSize(0, 0), pContext)
)
{
return false;
}
//更正下 RUNTIME_CLASS后面是类名,怎么你的每个RUNTIME_CLASS后卖弄的类名都是一样的呀 不是一个视图一个类这样应该没问题了
{
return FALSE;
} m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CMyEditView),CSize(128,128), pContext);
m_wndSplitter.CreateView(2,0,RUNTIME_CLASS(CMyEditView),CSize(128,128),pContext); 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(128,128),pContext);
m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CMyEditView),CSize(128,128),pContext); return TRUE;
nID
The child window ID of the window. The ID can be AFX_IDW_PANE_FIRST unless the splitter window is nested inside another splitter window.
谢谢哈!
!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CMyEditView), CSize(128, 128), pContext) ||