MFC添加了类的头文件为什么还提示类未定义
#include "edit.h"
#include "edit1.h"
#include "edit2.h"
上面的头文件是加在CMianFrame头文件中的
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
//创建一个静态分栏窗口,分为2行1列
if(wndSplitter_horizontal.CreateStatic(this,2,1)==NULL)
return FALSE;
//将CMonitorTopView视图连接到0行0列窗格上
wndSplitter_horizontal.CreateView(0,0,RUNTIME_CLASS(Cedit),CSize(50,50),pContext);
//将第1行0列再分开1行2列
if(wndSplitter_erect.CreateStatic(&wndSplitter_horizontal,1,2,WS_CHILD|WS_VISIBLE, wndSplitter_horizontal.IdFromRowCol(1, 0))==NULL)
return FALSE;
//将CMonitorView类连接到第二个分栏对象的0行0列
wndSplitter_erect.CreateView(0,0,RUNTIME_CLASS(Cedit1),CSize(220,220),pContext);
//将CMonitorRightView类连接到第二个分栏对象的0行1列
wndSplitter_erect.CreateView(0,1,RUNTIME_CLASS(Cedit2),CSize(220,220),pContext);
return TRUE;
//return CFrameWnd::OnCreateClient(lpcs, pContext);
}