我正在尝试制作一个 WinAPI C++ 程序,但是我遇到了以下错误:
error: 'AW_SHOW' was not declared in this scope
error: 'AW_HIDE' was not declared in this scope
error: 'AW_BLEND' was not declared in this scope
error: 'AnimateWindow' was not declared in this scope
error: 'SW_MINIMISE' was not declared in this scope
我试过使用 ::AnimateWindow 但是我收到了同样的错误。这是我的头文件,包含在 windows.h 之前
#ifdef WINVER
#undef WINVER
#endif
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define WINVER 0x0500
#define _WIN32_WINNT 0x0500
我还尝试将变量设置为 0x0502,并在 Winuser.h 中为 AnimateWindow 注释掉预处理器。