Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use form.hwnd property?
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00085642
Message ID:
00085657
Views:
24
>>>
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform