AnimateWindow()函数未定义的解决方法

    
BOOL AnimateWindow(      

    HWND hwnd,
    DWORD dwTime,
    DWORD dwFlags
);

使用VC进行编译时,调用此函数会出现错误,提示未定义

解决方法就是加如下定义代码

#undef WINVER
#define WINVER 0X500

接下来就完美运行了 

可修改风格如下


 
 
ValueDescription
AW_SLIDEUses slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER.
AW_ACTIVATEActivates the window. Do not use this value with AW_HIDE.
AW_BLENDUses a fade effect. This flag can be used only if hwnd is a top-level window.
AW_HIDEHides the window. By default, the window is shown.
AW_CENTERMakes the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used.
AW_HOR_POSITIVEAnimates 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_NEGATIVEAnimates 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_POSITIVEAnimates 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_NEGATIVEAnimates 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. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值