Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a reference to LPPICTUREDISP object?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01128364
Message ID:
01128447
Vues:
23
This message has been marked as the solution to the initial question of the thread.
Try this:

oImage = LOADPICTURE(GETPICT())
?oImage.Handle

When you type ?oImage. Intellisense kicks in, you will see Handle as a property of the oImage object.

Carlos

>Hi
>I need to pass an image object to an ActiveX control. This control has VB6 version, .NET version and MFC version ( that's the one that works well in my tests so far ).
>From the help of the control for the expected image object needed ( it's a treeview control by the way ) they state the following is expected as Image property:
>
>A stdPicture object in Visual Basic 6, a LPPICTUREDISP in MFC, a reference to a System.Drawing.Image object in .Net languages.
>
>Assuming i have some JPG file for instance, how can i open it in VFP and create a LPPICTUREDISP reference to it?
>
>Thanks
>Jaime
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform