Results 1 to 4 of 4

Thread: Some problem with AnimateWindow API

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Posts
    484

    Some problem with AnimateWindow API

    Hi,

    I tried the following code to try to 'disolve' a form window but when i press the button, nothing happens. Know why?

    Pls tell me , many many thanx~!

    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function AnimateWindow Lib "user32" ( _
    4.            ByVal hwnd As Long, _
    5.            ByVal dwTime As Long, _
    6.            ByVal dwFlags As Long _
    7. ) As Boolean
    8.  
    9. Const AW_BLEND = &H80000 'Uses a fade effect. This flag can be used only if hwnd is a top-level window.
    10. Const AW_SLIDE = &H40000
    11.  
    12. Private Sub Command1_Click()
    13. Me.AutoRedraw = True
    14.  
    15. Dim RetVal
    16. AnimateWindow Me.hwnd, 4000, AW_BLEND
    17.  
    18. End Sub

  2. #2
    DaoK
    Guest
    You should only post that in the API forum and not in all vbforum you see...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Posts
    484
    sorry but i see that my problem fits all categories

  4. #4
    Zaei
    Guest
    AnimateWindow questions are NOT either graphics or game programming questions. This is purly an API question, post there, or in General.

    AnimateWindow requires NT 5.0, or Windows 98. If you are not running either OS, or higher, it wont work.

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width