>>>
>>>Ed accidentally left out a step in getting the form's window handle. The value returned by _WFindTitl() is the form's whandle, which is not quite the same thing. In order to retrieve the hwnd, take the value returned by this function and pass it to the Foxtools function _WhTohWnd(). The value that this function returns is the window handle.
>>
>>Actually, it was accident from my side. I just never used this way. So far, ActiveX I used were happy with FindWindow() return.
>
>With child windows? I've never tried it, because according to the Win32.hlp file, it only searches top level windows. Of course, if the form is defined as such, then it does work. For the main VFP window, I use the foxtools MainhWnd() function. Of course, as you might guess, foxtools is a part of all my applications. :-)
Yes it worked with standard forms. I guess any ActiveX should tested for particualr situation.
Edward Pikman
Independent Consultant