Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to subclass an OCX control?
Message
 
À
08/06/2004 12:20:15
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00911164
Message ID:
00911241
Vues:
19
Here's where VFP 8 (i think 7, too) might be helpful.

In the command window (VFP 8) do this:
O=CREATEOBJECT('Charge.OCXCharge')
the, when you type "O.", an object browser intellisense list should appear to reveal the root properties and methods available. Does this happen when you create the object in the command window?


>Sergey,
>Thanks, but it's not working with the control I am trying to use.
>
>DEFINE CLASS pcChargeControl AS OLEControl
> OLECLASS='Charge.OCXCharge'
>ENDDEFINE
>
>I am using the correct typelib reference, because the statement
>O=CREATEOBJECT('Charge.OCXCharge')
>works.
>
>Do you see something that I missed?
>
>>>How can I programmatically subclass an OCX Control?
>>>
>>
DEFINE CLASS myListView as olecontrol
>>  OleClass = 'mscomctllib.listviewctrl.2'
>>ENDDEFINE
>>
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform