Results 1 to 2 of 2

Thread: CallBack Function

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Can someone give me a good definition of a Callback Function?

    For example, the following just go through each window that is open.
    Code:
      Call EnumWindows(AddressOf AllWindows, 0)

    What is this one doing?
    Code:
      Call SetTimer(Form1.hwnd, int_ID, 500, AddressOf TimerProc)

    Thanks
    Chemically Formulated As:
    Dr. Nitro

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    It calls the TimerProc when (in this case) 500 milliseconds has past.
    If you want more then one TimerProc (assosiated with the same form) you have to give them different IDs (the second argument).

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