扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:袁怀善 来源:vckbase 2007年10月19日
关键字:
BOOL AnimateWindow( HWND hwnd, // handle to the window to animate DWORD dwTime, // duration of animation DWORD dwFlags // animation type ); |
标志 | 说明 |
AW_SLIDE | Uses slide animation. By default, roll animation is used. This flag is ignored when used with the AW_CENTER flag. |
AW_ACTIVATE | Activates the window. Do not use this flag 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 the AW_HIDE flag is used or expand outward if the AW_HIDE flag is not used. |
AW_HOR_POSITIVE | Animate the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag. |
AW_HOR_NEGATIVE | Animate the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag. |
AW_VER_POSITIVE | Animate the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag. |
AW_VER_NEGATIVE | Animate the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag. |
CMainFrame::OnCreate(…) { //... AnimateWindow(GetSafeHwnd(),1000,AW_CENTER|AW_BLEND); //… } |
CMainFrame::OnClose(..) { AnimateWindow(GetSafeHwnd(),1000,AW_HIDE|AW_CENTER|AW_BLEND); } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者