为何UpdateData函数在外部定义的头文件中函数中提示如下

为什么UpdateData函数在外部定义的头文件中函数中提示如下
'UpdateData' : undeclared identifier

我是包含了头文件:

#include "stdafx.h"

proc.h文件如下:
#include "stdafx.h"

POINT pt;

void StartGame() 
{
....
UpdateData(FALSE);
}

------解决方案--------------------
UpdateData
这个函数是CWnd类的成员函数。。

只有CWnd及其派生类才能直接调用该函数。其他的不行的。
不能在全局函数中使用