Assuming "I got your question" here is how you do "the deed". First you need the handle to the control or window you are sending to.
This is done via:
GetHandle() fortunately this is housed in the AnyWindow Class and gets you the window id you need to send the message to. The return is an integer. Lets define it as
integer ci_handle = controlInterest.GetHandle()
Ok so you got a window handle. Now lets send it a message. The DLL's to send messages and any number of other things are already encapsulated in some Segue inc files like
mswfun32.inc .. if you don't automatically get these includes (and I think you do you may have to search for them and alter use path and explicitly include it). Look for
Anyway if you look into this include file you will find under user32.dll:
LRESULT SendMessage (HWND hWnd, UINT uiMsg, WPARAM wParam, LPARAM lParam) alias "SendMessageA"
Which I suspect is what you are looking for.
Simply use it like so:
This will close the window (message no 16)whose handle is contained in ci_handle (as explained above).
The String variable dummy is just there to satisfy the number of args the function requires. Address xlation is not performed on this and many other win32 dll calls so you won't get usefull info returned here.
See my download section on Betasoft "shared memory between seperate processes" for that.
"Smoke me a kipper, I'll be back for breakfast!"
Sr. QA Engineer
[This message has been edited by rick_weth (edited 12-27-1999).]