home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo â€Ĥe CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / AllAPI_API179141992004.psc / API / A / AnimateWindow.api < prev   
Encoding:
INI File  |  2004-08-30  |  2.4 KB  |  52 lines

  1. [NAME]
  2. AnimateWindow
  3. [DESCRIPTION]
  4. The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are three types of animation: roll, slide, and alpha-blended fade.
  5. [DECLARATION]
  6. Declare Function AnimateWindow Lib "user32" (ByVal hwnd As Long, ByVal dwTime As Long, ByVal dwFlags As Long) As Boolean
  7. [VBNET]
  8. N/A
  9. [OS]
  10. Requires Windows 2000 or later; Requires Windows 98 or later
  11. [LIBRARY]
  12. User32
  13. [PARAMETERS]
  14. ╖ hwnd
  15. [in] Handle to the window to animate. The calling thread must own this window.
  16.  
  17. ╖ dwTime
  18. [in] Specifies how long it takes to play the animation, in milliseconds. Typically, an animation takes 200 milliseconds to play.
  19.  
  20. ╖ dwFlags
  21. [in] Specifies the type of animation. This parameter can be one or more of the following values.
  22. AW_SLIDE
  23.  Uses slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER.
  24. AW_ACTIVATE
  25.  Activates the window. Do not use this value with AW_HIDE.
  26. AW_BLEND
  27.  Uses a fade effect. This flag can be used only if hwnd is a top-level window.
  28. AW_HIDE
  29.  Hides the window. By default, the window is shown.
  30. AW_CENTER
  31.  Makes the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used.
  32. AW_HOR_POSITIVE
  33.  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.
  34. AW_HOR_NEGATIVE
  35.  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.
  36. AW_VER_POSITIVE
  37.  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.
  38. AW_VER_NEGATIVE
  39.  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.
  40. [RETURNS]
  41. If the function succeeds, the return value is nonzero.
  42.  
  43. If the function fails, the return value is zero. The function will fail in the following situations: 
  44.  
  45. The window uses the window region. 
  46. The window is already visible and you are trying to show the window. 
  47. The window is already hidden and you are trying to hide the window. 
  48. To get extended error information, call the GetLastError function. 
  49. [EXAMPLES]
  50. AnimateWindow*758C81375883BF7D46F6C5FB5FC22205.html
  51. [RELis 
  52. An ehion, call the GetLastErro