请教高手,关于静态分割视图的问题 如题,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 MSDN下有一个例子:VIEWEX,这个例子中由静态分割的操作,你看看吧! 按照netant的样式切分BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { // TODO: Add your specialized code here and/or call the base class //return CFrameWnd::OnCreateClient(lpcs, pContext); CRect rect; this->GetClientRect( &rect ); BOOL flag = m_splitterLeftWnd.CreateStatic( this, 1, 2 ); if( !m_splitterLeftWnd.CreateView( 0, 0, RUNTIME_CLASS( CXmlTree ), CSize( 180, 0 ), pContext)) return false; flag = m_splitterRightWnd.CreateStatic( &m_splitterLeftWnd, 2, 1, WS_CHILD|WS_VISIBLE, m_splitterLeftWnd.IdFromRowCol( 0, 1 )); if( !m_splitterRightWnd.CreateView( 0, 0, RUNTIME_CLASS( CEditXmlView ), CSize( 0, (5*(rect.bottom-rect.top)/7)), pContext)) return false; if( !m_splitterRightWnd.CreateView( 1, 0, RUNTIME_CLASS( CInputXpathString ), CSize( 0,(2*(rect.bottom-rect.top)/7)), pContext)) return false; int aa = rect.bottom-rect.top; this->SetActiveView( (CView *)m_splitterLeftWnd.GetPane( 0, 0 ) ); return flag;} RUNTIME_CLASS()中括号的内容也要声明吗? 请问下边的裁剪矩阵公式是如何推导的 谁能帮我解释这句代码? 菜鸟困惑: 一个关于CButton点击事件问题 请问一下,怎么将一个CImageList中的图像拷贝到另一个????(在线等待) 偶想搞vc下的网络编程,请各位大虾给点意见 初学者请教: 如何高速显示图像 win98,老是提示C盘空间不够,而实际上C潘还有2G的空间,也没有打开什么窗口,怎么办 请教大家,如何才能实现颜色直方图。 我的socket问题 简单问题,高分相送,在线等待... 请问怎样在mfc程序中打开auto CAD的图形文件
{
// TODO: Add your specialized code here and/or call the base class
//return CFrameWnd::OnCreateClient(lpcs, pContext);
CRect rect;
this->GetClientRect( &rect );
BOOL flag = m_splitterLeftWnd.CreateStatic( this, 1, 2 );
if( !m_splitterLeftWnd.CreateView( 0, 0, RUNTIME_CLASS( CXmlTree ), CSize( 180, 0 ), pContext))
return false; flag = m_splitterRightWnd.CreateStatic( &m_splitterLeftWnd, 2, 1, WS_CHILD|WS_VISIBLE,
m_splitterLeftWnd.IdFromRowCol( 0, 1 )); if( !m_splitterRightWnd.CreateView( 0, 0, RUNTIME_CLASS( CEditXmlView ), CSize( 0, (5*(rect.bottom-rect.top)/7)), pContext))
return false;
if( !m_splitterRightWnd.CreateView( 1, 0, RUNTIME_CLASS( CInputXpathString ), CSize( 0,(2*(rect.bottom-rect.top)/7)), pContext))
return false; int aa = rect.bottom-rect.top; this->SetActiveView( (CView *)m_splitterLeftWnd.GetPane( 0, 0 ) );
return flag;
}