MFC视图分割
BOOLCMainFrame::OnCreateClient(LPCREATESTRUCTlpcs,CCreateContext*pContext){//TODO:Add...
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
//CRect rect;
//GetClientRect(rect);
if(!m_wndSplitter.CreateStatic(this,1,2))
return FALSE;
if(!m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftView),CSize(200,400),pContext))
return FALSE;
if(!m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CRightView),CSize(100,100),pContext))
return FALSE;
return TRUE;
//return CFrameWnd::OnCreateClient(lpcs, pContext);
}
请问为什么一点运行就弹出有中止按钮的那个错误提示? 展开
{
// TODO: Add your specialized code here and/or call the base class
//CRect rect;
//GetClientRect(rect);
if(!m_wndSplitter.CreateStatic(this,1,2))
return FALSE;
if(!m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftView),CSize(200,400),pContext))
return FALSE;
if(!m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CRightView),CSize(100,100),pContext))
return FALSE;
return TRUE;
//return CFrameWnd::OnCreateClient(lpcs, pContext);
}
请问为什么一点运行就弹出有中止按钮的那个错误提示? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询