Thanks George!
Rick
>>Hi all,
>>
>>Im pretty sure that I know the answer to this, but I thought I'd try it out on the group < g >.
>>
>>Im translating some Delphi code to VFP. The code calls out to the EnumWindows API function and passes a pointer to a Delphi function to be used as a callback function.
>>
>>This cannot be done under VFP can it?
>
>Nope. It could be done from VB, but, because of a lack of a function to determine the address of the function, plus VFP's non-standard method of handling Windows messages, it's a no go.
>
>>The callback function checks for a specific window title, so Im sure that I can use the FindWindow API function just as easily or George Tasker's Is_Run.prg, but I just thought I'd ask.
>>
>Basically, that's what Is_Run does. Loops through all top-level windows looking for a match for the portion provided. EnumWindows also only does top-level windows.