分割视的问题
我想创建一个分割视代码如下:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// Create the splitter window with two columns
if (!m_wndSplitter.CreateStatic(this, 1, 2))
{
TRACE0("Failed to create splitter window\n");
return FALSE;
}
// "LeftView" view first
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftView),
CSize(100, 0), pContext))
{
TRACE0("Failed to create CListMenuView\n");
return FALSE;
}
// splitter windows.
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightView),
CSize(0, 0), pContext))
{
TRACE0("Failed to create CDemo_OutlookView\n");
return FALSE;
}
return TRUE;
}
编译时出现如下错误信息:
error C2653: 'CRightView' : is not a class or namespace name
error C2065: 'classCRightView' : undeclared identifier
error C2653: 'CLeftView' : is not a class or namespace name
error C2065: 'classCLeftView' : undeclared identifier
CRightView和CLeftView是我自己派生出来的类。
请各位高手指教如何修改程序消除错误??如何创建自己的分割视??