Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get a handle to an object?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00489578
Message ID:
00489648
Vues:
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))

Yes George, that is what I needed. I am working on an out of process spinner to show during long operations which may lead the user to beleive a lock up has occured. I will share what I come up with, unfortunately, it may only be academic before VFP7... My ultimate desire is to get the window handle of a picture or image control.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform