Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winforms and VFP
Message
De
07/01/2005 04:17:57
 
 
À
06/01/2005 16:35:15
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00974826
Message ID:
00974993
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>>I am trying to make a winform stick to a VFP _screen handle, but i can't figure out how to do it.
>>
>>Basically the VFP app starts my winform app with "run /n" and sends it's whnd as an argument. I'd like to use the VFP windows handle i received to host my winform just as it was a native VFP form. Is this possible ?
>
>All I can say is that I think it is possible. I remember this thread before. There is a Win API call that lets you make an hwind a child of another hwind.
>
>Sorry I don't have the exact details.
>
>BOb

Try the SetParent API call:
DECLARE INTEGER SetParent IN user32 INTEGER hWndChild, INTEGER hWndNewParent
SetParent(netFormHWnd, _screen.HWnd)
netFormHwnd is the handle to your .NET window. To find this handle you could for example use the FindWindow API function.

Regards,

Eyvind.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform