Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining the control's handle
Message
De
03/07/2002 06:35:05
 
 
À
02/07/2002 18:25:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00674043
Message ID:
00674876
Vues:
26
>Native VFP textbox and editbox controls do not have their own hWnds - they're user-rendered based on the hWnd of their container. You may want to use an ActiveX textbox/editbox instead of the natie VFP control classes, or with VFP7, might want to use the IAccessible interface tohandle the VFP controls - all VFP controls expose an IAccessible interface so that VFP 7 deliver MS Accessibility support.

How can get the IAccessible interface from a VFP7 control. I tried the following:
loTestForm = CREATEOBJECT('form')
loTestForm.AddObject('Test','textbox')
loTestAccessible = GETINTERFACE(loTestForm.test, 'IAccessible')
But it does not work, because loTestForm.test is not a COM object.
Can you give an example please?
Best Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform