滚动视图建立时的有关问题

滚动视图建立时的问题
用ClassWizard创建一个从CScrollView派生的新视图类CLab1_3ScrollView,然后在应用程序类的InitInstance( )
中,用新类替换用来定义应用程序文档模板的类。
pDocTemplate = new CMultiDocTemplate(
IDR_LAB1_3TYPE,
RUNTIME_CLASS(CLab1_3Doc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
//RUNTIME_CLASS(CLab1_3View));
RUNTIME_CLASS(CLab1_3ScrollView));
编译的时候报错:
'CLab1_3ScrollView' : is not a class or namespace name
'classCLab1_3ScrollView' : undeclared identifier
我已经用ClassWizard创建了一个CLab1_3ScrollView在左边的ClassView中可以看见
不知是怎么回事,谢谢指教~~~


------解决方案--------------------
添加头文件到应用程序类所在的CPP文件:

#include "Lab1_3ScrollView.h"试试