Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HWND info Needed
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00502947
Message ID:
00503427
Views:
25
>>For the main VFP Windows, I believe, which doesn't help Arunkumar very much.
>
>You can use the following to get the hwnd of any forms:
>
>lnWHandle = _WFindTitl(THISFORM.CAPTION)
>HWND = _WhToHWnd(lnWHandle)
>
>
>which are in the foxtools as well.

With a top-level form, this returns the frame rather than the client area. With other (non-top level) VFP forms the value of the above and the client area are the same. That's why the code I presented to find the control on the form makes the additional call to FindWindowEx().
George

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

Click here to load this message in the networking platform