有个问题我一直不知道怎么解决,请大家帮下忙。比如AnimateWindow这个函数,它带三个参数,第一个是窗口HANDLE,第二个是时间,第三个是决定如何开始显示窗口的参数,它可以填aw_blend,AW_CENTER 这些值..
AnimateWindow(handle,500,aw_blend);
AnimateWindow(handle,500,AW_CENTER);请问,当我在忘了它是填AW_CENTER这些值的时候,在哪里才能看到它是填这些值的呢?
(比如说,我想用这个函数,但我只记得它第三个参数是真XX_CENTER之类的,怎么才能看到它是填AW_CENTER的呢?)谢谢,我知道这肯定是个很简单的问题,但我就是不知道怎么解决。

解决方案 »

  1.   

    如果是delphi自带的函数,用F1看HELP
    如果是自己写的或第三方的函数(没HELP),用按ctrl并用mouse点击该函数,就可以看它的定义
      

  2.   

    另外,还有一个途径,用google在网上搜
    像AnimateWindow比较特殊,因为delphi自带的windows SDK HELP较老,所以没有这个函数的HELP
    你可上网找一下它的HELP
    还有.如果你像我一样装有较新的microsoft的MSDN,就可以有所有windwos SDK的文档了,如:
    AnimateWindow
    [This is preliminary documentation and subject to change.] The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are two types of animation: roll animation and slide animation. BOOL AnimateWindow(
      HWND hwnd,     // handle to the window to animate
      DWORD dwTime,  // duration of animation
      DWORD dwFlags  // animation type
    );
     
    Parameters
    hwnd 
    Specifies a handle to the window to animate. 
    dwTime 
    Specifies how long it takes to play the animation, in milliseconds. Typically, an animation takes 200 milliseconds to play. 
    dwFlags 
    Specifies the type of animation. This parameter can be one or more of the following flags. Flag Description 
    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.  
    Return Values
    If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. The function will fail in the following situations: The window uses the window region. 
    The window is already visible and you are trying to show the window. 
    The window is already hidden and you are trying to hide the window. 
    To get extended error information, call theGetLastError function. Res
    You can combine the AW_HOR_POSITIVE or AW_HOR_NEGATIVE flag with the AW_VER_POSITIVE or AW_VER_NEGATIVE flag to animate a window diagonally. The window procedures for the window and its child windows may need to handle any WM_PRINT or WM_PRINTCLIENT messages. Dialog boxes, controls, and common controls already handle WM_PRINTCLIENT. The default window procedure already handles WM_PRINT. QuickInfo
      Windows NT: Requires version 5.0 or later.
      Windows: Requires Windows 98 or later.
      Windows CE: Unsupported.
      Header: Declared in winuser.h.
      Import Library: Use user32.lib.See Also
    Windows Overview, Window Functions,WM_PRINT,WM_PRINTCLIENT 
      

  3.   

    有很多函数看HELP也看不到的,而这时我都是到GOOGLE里搜一下它的用法,才能找到的。
      

  4.   

    以前装过一个MSDN2003,好大。而且全英文的,看得头痛就删了。
      

  5.   

    在delphi中按住ctrl键鼠标点击AnimateWindow就可以看到了
      

  6.   

    楼上的,你还没理解我的意思啊.那样只能看到它有哪些参数,而并不能看到DELPHI已经定义好的值。
      

  7.   

    你用Ctrl按着点击AW_CENTER不就知道这个参数是如何定义的了么??也同样就知道这个参数可以替换为同类型的什么参数了么???
      

  8.   

    通常这样的参数都是枚举类型的。。参数本身只是个符号。。只是你传入参数后。。处理的函数会根据参数的不同而采用不同的处理方法,就象一个Form的FormStyle一样,不同的定义,会产生不同的效果
      

  9.   

    楼上的大哥,要是连AW_CENTER都忘了呢??