返回首页

VC的看法的问题:您好,我想分成三部分SDI moudle认为,howerer它不显示在以正确的方式,两位顶尖部分的高度是零,什么是错的?

我函数OnCreateClient中添加代码:


        CRect rect;

	GetClientRect(&rect);

	if ( NULL == m_wndSplitter1.CreateStatic( this,2,1 )) return false;

	//m_wndSplitter1.CreateView(0,0,  RUNTIME_CLASS(TView), CSize(rect.Width(),rect.Height()-rect.Height()/4), pContext);

	

	m_wndSplitter1.CreateView(1,0, RUNTIME_CLASS(VEDView),CSize(rect.Width()/2,					rect.Height()/4),pContext);

	m_wndSplitter2.CreateStatic( &m_wndSplitter1,1,2 ,WS_CHILD|WS_VISIBLE,m_wndSplitter1.IdFromRowCol(0,0) );

	m_wndSplitter2.CreateView(0,0,  RUNTIME_CLASS(TView), CSize(rect.Width()/3,					rect.Height()-rect.Height()/4), pContext);

	m_wndSplitter2.CreateView(0,1,  RUNTIME_CLASS(TView), CSize(rect.Width() - rect.Width()/3,	rect.Height()-rect.Height()/4), pContext);

	return true;
我应该改变别的地方?| Younth

回答