VC里单文档实现静态窗口分割?
protected://controlbarembeddedmembersCSplitterWndm_wndSplitter1;BOOLCMainFrame::OnCre...
protected: // control bar embedded members
CSplitterWnd m_wndSplitter1;
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (m_wndSplitter1.CreateStatic(this,3,1)==NULL)
{return FALSE;
}
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CMulViewView),CSize(100,100),pContext);
....
}
error C2653: 'CMulViewView' : is not a class or namespace name
d error C2065: 'classCMulViewView' : undeclared identifier
其中CMulViewView为视图类窗口,
怎么就出现了错误了呢? 展开
CSplitterWnd m_wndSplitter1;
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (m_wndSplitter1.CreateStatic(this,3,1)==NULL)
{return FALSE;
}
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CMulViewView),CSize(100,100),pContext);
....
}
error C2653: 'CMulViewView' : is not a class or namespace name
d error C2065: 'classCMulViewView' : undeclared identifier
其中CMulViewView为视图类窗口,
怎么就出现了错误了呢? 展开
2个回答
展开全部
要包含头文件MulViewView.h
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询