切分视的问题 单文档如何切成T型视,就是先切上下两个视,再任选一个视,将其切成左右两个!谢谢, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 先切上下两个视,下面那个不要做成视,再用另一个splitter切。 CRect rect; GetClientRect(&rect); if(m_wndSplitter.CreateStatic(this,4,1)==NULL) return FALSE; m_wndSplitter.CreateView(0,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4), pContext); m_wndSplitter.CreateView(1,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4),pContext); m_wndSplitter.CreateView(2,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4), pContext); m_wndSplitter.CreateView(3,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4),pContext); strcpy( ((CShowTvView *)m_wndSplitter.GetPane(0, 0))->m_szWorkName, "一工位" ); strcpy( ((CShowTvView *)m_wndSplitter.GetPane(1, 0))->m_szWorkName, "二工位" ); strcpy( ((CShowTvView *)m_wndSplitter.GetPane(2, 0))->m_szWorkName, "三工位" ); strcpy( ((CShowTvView *)m_wndSplitter.GetPane(3, 0))->m_szWorkName, "四工位" ); protected: CSplitterWnd m_wndSplitter, m_wndSplitter1;BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext){ // create splitter window if (!m_wndSplitter.CreateStatic(this, 2, 1)) return FALSE; m_wndSplitter.SetRowInfo(0, 200, 0); //将下边划分为一行两列 if(m_wndSplitter1.CreateStatic(&m_wndSplitter, 1,2, WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromColumnCol(1, 0)) == NULL) return FALSE; if( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CUpView), CSize(200, 600), pContext) || !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftDownView), CSize(500, 400), pContext)|| !m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightDownView), CSize(500, 200), pContext)) { m_wndSplitter.DestroyWindow(); return FALSE; } return TRUE;} 不好意思,应该是:if( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CUpView), CSize(200, 600), pContext) ||!m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLeftDownView), CSize(500, 400), pContext)||!m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CRightDownView), CSize(500, 200), pContext)) 按照 brant(brant) 的方法我已经作出来了!: lizmei001 兄好像是做了4×1的切分啊!: byry(百事罐头) 的方法还没有试!与我的代码对比,找到我错在哪里了!谢谢!! glOrtho 设置了不起作用. 请教一个正则表达式的问题:如何像DOS一样忽略顺序 CLoginDlg dlg;m_pMainWnd = &dlg;编译出错? 怎么获得弹出对话框EIDT的内容? OpenGL显示刷新问题 求Windows下像strace(linux下)工具 使用ShellExecuteEx打开网页,如何才能打开一个新的ie而不是在原有打开的ie中打开新链接 菜鸟求助,有关在view中加入空间 为什么没图标显示? 谁见过这种错误 smtp邮件发送服务器,的身份验证如何实现? vc 调用存储过程问题
GetClientRect(&rect); if(m_wndSplitter.CreateStatic(this,4,1)==NULL)
return FALSE;
m_wndSplitter.CreateView(0,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4), pContext);
m_wndSplitter.CreateView(1,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4),pContext);
m_wndSplitter.CreateView(2,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4), pContext);
m_wndSplitter.CreateView(3,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4),pContext);
strcpy( ((CShowTvView *)m_wndSplitter.GetPane(0, 0))->m_szWorkName, "一工位" );
strcpy( ((CShowTvView *)m_wndSplitter.GetPane(1, 0))->m_szWorkName, "二工位" );
strcpy( ((CShowTvView *)m_wndSplitter.GetPane(2, 0))->m_szWorkName, "三工位" );
strcpy( ((CShowTvView *)m_wndSplitter.GetPane(3, 0))->m_szWorkName, "四工位" );
CCreateContext* pContext)
{
// create splitter window
if (!m_wndSplitter.CreateStatic(this, 2, 1))
return FALSE; m_wndSplitter.SetRowInfo(0, 200, 0);
//将下边划分为一行两列
if(m_wndSplitter1.CreateStatic(&m_wndSplitter, 1,2, WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromColumnCol(1, 0)) == NULL)
return FALSE;
if( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CUpView), CSize(200, 600), pContext) ||
!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftDownView), CSize(500, 400), pContext)||
!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightDownView), CSize(500, 200), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
if( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CUpView), CSize(200, 600), pContext) ||
!m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLeftDownView), CSize(500, 400), pContext)||
!m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CRightDownView), CSize(500, 200), pContext))
: lizmei001 兄好像是做了4×1的切分啊!
: byry(百事罐头) 的方法还没有试!
与我的代码对比,找到我错在哪里了!谢谢!!