Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to receive SendMessage Api
Message
 
To
30/08/2016 06:26:43
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01640177
Message ID:
01640178
Views:
76
>Hi All,
>
>I have to use Sendmessage Winapi and receive message from opposite application. I found this code from internet:
>
>
>
>
>Declare Long FindWindowA In Win32API String cNULL, String cWinName
>DECLARE LONG SendMessage IN user32 AS WinAPI_SendMessage ; 
>	LONG,; 
>	LONG,; 
>	LONG,; 
>	STRING @
>sTitle = "kl_ecrsunucu"
>iHwnd = FindWindowA(0, sTitle)
>#DEFINE WM_COPYDATA 	0x004A
>*  _vfp.hWnd
>xstr="qqq"
>lnRetVal = WinAPI_SendMessage(ihWnd, WM_COPYDATA, this.HWnd , @xstr)
>WAIT WINDOW lnretval 
>
>
>opposite application look for kl_ecrclient caption at my form. What I should do for receive message after change my forms caption? How can I read message from opposite?

Check BINDEVENT() in HELP.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform