AnimateWindow函数使用的有关问题

AnimateWindow函数使用的问题!
在一个新工程我在stdafx.h加入下列代码
#undef   WINVER                 //取消原有版本定义,重新定义版本
#define   WINVER   0x4000         //为了使AnimateWindow函数可用

AnimateWindow函数确实可以用。
但是如果在我这个原来就用的工程中   我按照这样的方法   还是会出这样的错误
D:\BackUp1\MessageAss\PengdingRequest.cpp(117)   :   error   C2065:   'AnimateWindow '   :   undeclared   identifier
D:\BackUp1\MessageAss\PengdingRequest.cpp(117)   :   error   C2065:   'AW_BLEND '   :   undeclared   identifier
D:\BackUp1\MessageAss\PengdingRequest.cpp(117)   :   error   C2065:   'AW_HIDE '   :   undeclared   identifier

后来我想了想   我修改了   project   settings   中的preprocessor   definitions   项
我在这项   加了W32
还有把object/library   modules     中原来系统自动生成的改成了我的D:\notescpp\lib\mswin32\notescpp.lib  

不知道我这些修改是不是导致在我的这个工程中使用不了AnimateWindow函数的原因我应该怎么解决?

------解决方案--------------------
加上在stdafx.h里

#undef WINVER
#define WINVER 0X500