请问vc++中这个提示是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/06/14 19:53:20
运行VC++6.0时,提示'UpdateAllviews' : undeclared identifier
谢谢大家的热心帮忙,以前也学了好几回,一直是遇到问题,没有地方问,放弃了。
在这里也希望,所以遇到学习问题的朋友,都能够得到及时解答和帮助,及时接触疑惑。
谢谢大家!

这个函数是定义在这个头文件中的afxwin.h
加上这个头文件试试

这个函数的是:Call this function after the document has been modified
当你的文档修改后,需要调用这个函数更新
MSDN中的英文解释:
Call this function after the document has been modified.

void UpdateAllViews(
CView* pSender,
LPARAM lHint = 0L,
CObject* pHint = NULL
);

Parameters
pSender
Points to the view that modified the document, or NULL if all views are to be updated.

lHint
Contains information about the modification.

pHint
Points to an object storing information about the modification.

Remarks
You should call this function after you call the SetModifiedFlag member function. This function informs each view attached to the document, except for the view specified by pSender, that the document has been modified. You typically call this function from your view class after the user has changed the document through a view.

This functio