Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get a handle to an object?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00489578
Message ID:
00489587
Views:
21
>How can I get the handle to a form or any other control?
>
>My humble thanks in advance,

Joe,

A window handle, I assume. VFP controls don't have them (ActiveX, however, do). In VFP 7.0, the forms have an hwnd property that represents the window handle. In VFP 6.0 you can use foxtools to get a particular window handle. Assuming the library's loaded:

lnhwnd = _WhTohWnd(_WFindTitl(Form.caption))
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform