小弟 vc6.0编程
窗口拆分
当我窗口拆分两个视图View的时候,一切情况良好
但是当我拆分三个视图的时候,问题出现了
拆分出的View不用鼠标出来,它自己不能自动显示
郁闷中.............
各位大侠,帮我看看我的代码有什么不妥当的地方
小弟愿意以身相许!!BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
CRect rect;
GetClientRect(&rect); if(!m_up.CreateStatic(this,1,2))
{
AfxMessageBox("Error:创建左右拆分失败!");
return FALSE;
} if(!m_frame.CreateStatic(&m_up,2,1,WS_CHILD|WS_VISIBLE,m_up.IdFromRowCol(0,0)))
{
AfxMessageBox("Error:创建上下拆分失败!");
return FALSE;
} if(!m_frame.CreateView(0,0,RUNTIME_CLASS(CMyView),CSize(150,400),pContext))
{
AfxMessageBox("Error:上下拆分窗口1失败!");
return FALSE;
} if(!m_frame.CreateView(1,0,RUNTIME_CLASS(CATTR),CSize(150,rect.Height()-400),pContext))
{
AfxMessageBox("Error:拆分窗口失败!");
return FALSE;
} m_up.CreateView(0,1,RUNTIME_CLASS(CMapView),CSize(rect.Width()-150,rect.Height()),pContext); m_up.RecalcLayout();
m_frame.RecalcLayout();
return TRUE;}其中,MyView和CATTR是我继承自CFormView的两个视图类,CMapView是原来未划分时的View视图,救救小弟!!!