error C2065: 'Crect' : undeclared identifier
按照书上的例子建立了一个MFC单文件,只添加了以下代码其余的未变
void CEx03aView::OnDraw(CDC* pDC)
{
CEx03aDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
pDC->TextOut(0,0,"hello,world!");
pDC->SelectStockObject(GRAY_BRUSH);
pDC->Ellipse(Crect(0,20,100,120));}
编译结果显示:error C2065: 'Crect' : undeclared identifier
添加了包含文件#include "afxwin.h"结果一样,请问如何修改,其他的选项设置都没变不知是否需要更改呢