Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window handles - how to determine the value
Message
From
03/07/1999 07:48:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00237075
Message ID:
00237153
Views:
12
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform