BOOL AnimateWindow(
HWND hwnd,
DWORD dwTime,
DWORD dwFlags
);
使用VC进行编译时,调用此函数会出现错误,提示未定义
解决方法就是加如下定义代码
#undef WINVER
#define WINVER 0X500
接下来就完美运行了
可修改风格如下
Value | Description |
---|
AW_SLIDE | Uses
slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER. |
AW_ACTIVATE | Activates the window. Do not use this value with AW_HIDE. |
AW_BLEND | Uses
a fade effect. This flag can be used only if hwnd is a top-level window. |
AW_HIDE | Hides the window. By default, the window is shown. |
AW_CENTER | Makes
the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used. |
AW_HOR_POSITIVE | Animates the window from left to right. This flag can be used with roll or slide
animation. It is ignored when used with AW_CENTER or AW_BLEND. |
AW_HOR_NEGATIVE | Animates the window from right to left. This flag can be used with roll or slide animation. It is ignored when used
with AW_CENTER or AW_BLEND. |
AW_VER_POSITIVE | Animates the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND. |
AW_VER_NEGATIVE | Animates
the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND. |