关于windows窗口编程过程中编译的错误
作者:互联网
Compiling...
GetSystemMetrics.cpp
error C2065: 'SM_MOUSEWHEELPRESENT' : undeclared identifier
error C2065: 'SM_XVIRTUALSCREEN' : undeclared identifier
error C2065: 'SM_YVIRTUALSCREEN' : undeclared identifier
error C2065: 'SM_CXVIRTUALSCREEN' : undeclared identifier
error C2065: 'SM_CYVIRTUALSCREEN' : undeclared identifier
error C2065: 'SM_CMONITORS' : undeclared identifier
error C2065: 'SM_SAMEDISPLAYFORMAT' : undeclared identifier
error C2065: ‘SM_MOUSEWHEELPRESENT’ : undeclared identifier
windows.h头文件前加
#define _WIN32_WINNT 0x0401
这段代码
其余之后的错误
windows.h头文件前加
#define WINVER 0x0500
这段代码
标签:windows,undeclared,编程,C2065,编译,SM,error,identifier 来源: https://blog.csdn.net/qq_44647223/article/details/113872392