---------------------------------------------------------------------------------------
error C2065: 'WM_SETMESSAGESTRING' : undeclared identifier
---------------------------------------------------------------------------------------
这个错误是编写一个在状态栏中加载进度条时出现的错误,解决方法如下:
在StaAfx.h 中加入#include <afxpriv.h> 头文件
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#include <afxpriv.h>
#endif // _AFX_NO_AFXCMN_SUPPORT