BOOL AnimateWindow(
  HWND hwnd,     // 窗体句柄
  DWORD dwTime,  // 时间(毫秒单位) 
  DWORD dwFlags  // 变化类型

解决方案 »

  1.   

    AnimateWindow(Handle,200,AW_CENTER);
    关键是第三个参数,看看MSDN有详细的说明。
      

  2.   


    procedure TForm1.FormCreate(Sender: TObject);
    begin
      AnimateWindow(Handle,200,AW_HOR_POSITIVE)
    end;
      

  3.   

    这个简单AnimateWindow(form1.handle,100,1);
    AnimateWindow(form1.handle,100,2);
    AnimateWindow(form1.handle,100,3);
    都可以试试
    它的主要用途是让床体显示的时候出现动画的状态,有些软件
    它的窗体不是会突然一下跳出来吗?你看看这句AnimateWindow(form1.handle,10,16);
    简单吧!
      

  4.   

    AW_SLIDE
    AW_ACTIVATE
    AW_BLEND
    AW_HIDE
    AW_CENTER
    AW_HOR_POSITIVE
    AW_HOR_NEGATIVE
    AW_VER_POSITIVE
    AW_VER_NEGATIVE
      

  5.   

    dwflags的几种用法可以和我说一下吗?
      

  6.   

    这个简单AnimateWindow(form1.handle,100,1);
    AnimateWindow(form1.handle,100,2);
    AnimateWindow(form1.handle,100,3);
    都可以试试
    它的主要用途是让床体显示的时候出现动画的状态,有些软件
    它的窗体不是会突然一下跳出来吗?你看看这句AnimateWindow(form1.handle,10,16);
    简单吧!
      

  7.   

    Windows下有一个函数AnimateWindow,在Delphi自带的Win32 API Help中是找不到的.你可以在Delphi的编辑器中输入windows.等待代码向导出来,继续输入AnimateWindow就能看到确实是存在的Win32 API,它的功能是在显示或者关闭窗体的时候产生动画,如从左向右开屏,从中心向周围开屏等.
    语法:function AnimateWindow(hWnd: HWND; dwTime: DWORD; dwFlags: DWORD): BOOL; stdcall;
    参数:hWnd : 想要显示动画窗体的句柄
         dwTime : 动画时间数,单位毫秒
         dwFlags : 显示方式,取值如下定义
         1.AW_HOR_POSITIVE = $00000001; // 从左向右开屏
         2.AW_HOR_NEGATIVE = $00000002; // 从右向左开屏
         3.AW_VER_POSITIVE = $00000004; // 从上向下开屏
         4.AW_VER_NEGATIVE = $00000008; // 从下向上开屏
         5,AW_CENTER = $00000010;       // 从中心向四周扩展,在关闭动画中则为从四周向中心收缩
         6.AW_HIDE = $00010000;         // 关闭时候与前面的定义组合使用,如AW_HIDE or AW_CENTER
         7.AW_ACTIVATE = $00020000;     // 与1-5组合,开屏使用
         8.AW_SLIDE = $00040000;        // 与1-5 + 6/7 组合,产生滑行效果
         9.AW_BLEND = $00080000;        // Win2000下使用,淡入淡出效果
    例子:
    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs;type
      TForm1 = class(TForm)
        procedure FormCreate(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
    begin
      AnimateWindow(handle,200,AW_CENTER);
    end;end.
      

  8.   

    一个一个的试,不就完了,你太懒了,MSDN都不看。
    如果这样下去你可以转行了。很多程序员,好多东西都不懂,但是他们有良好
    的英语,和经验,再不懂的时候,他们可以通过查看帮助来解决问题,
    用法都告诉了,就应该自己去钻研。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 
    自己看把