关于CFormView类视图的Create()函数的一个错误?
在用下面的Create()函数创建CFormView类视图对象m_wndView时,出现后面的错误,是什么原因呢?应该怎么改呢?谢谢!
if (!m_wndView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,
CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL))
{
TRACE0("Failed to create view window\n");
return -1;
}
提示错误是:
E:\...\MainFrm.cpp(56) : error C2248: 'Create' : cannot access protected member declared in class 'CFormView'