Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Call - SENDMESSAGE()
Message
De
13/06/1999 17:27:38
 
 
À
11/06/1999 21:19:46
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00228861
Message ID:
00229296
Vues:
24
>Does this work?! IMO, it shouldn't work.
>
>Vlad
>
>>Okay, here's the answer we came up with
>>
>>
>>** Return window handle of VB app
>>lnhwnd = is_run([Form1])
>>
>>lclstring = "Did you get this message"
>>
>>
>>sendmsg = RegFN('SendMessage', 'III@C', 'I')
>>
>>retval = CallFN(sendmsg, lnhwnd, 12, 0, @lclstring)
>>
>>We took this farther,
>>
>>The VB guys are writing the window handle of a textbox to an ini file, I'm opening the ini file and pulling that value out. I place that value in the lnhwnd variable and we can write directly to the textbox value.
>>
>>Thanx for your help.


I would have bet the farm that FPW2.6 could not write to a text box on a VB form, but with the SENDMESSAGE() API, as long as you have the windowhandle, you can. The VB app is writting the windowhandle of textbox to a text file, we pick up the number and plug it in. I was impressed that it worked.
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform