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
这段代码