>John,
>
>The foxtools function mainhwnd() will give you the VFP main window. The native VFP controls do not have an HWND. You can use some of the MS ActiveX controls which will give you an HWND based control.
>
In addition, you can use the extrememly simple GetActiveWindow API call as long as VFP has focus:
DECLARE INTEGER GetActiveWindow IN WIN32API
nhWnd = GetActiveWindow()
>>Does anyone have experience of using Sentry Spell Checker in Visual Foxpro?
>>
>>I need to know how to find the window handle of the main application window and the handle of an edit box to be used with the spell checker so they can be passed as parameters. I can’t find much in the help files in VFP on this subject.