Close a Clarion app from another Clarion app? 
Author Message
 Close a Clarion app from another Clarion app?

Anyone know an easy way to close a Clarion, or any Windows application, from
another Clarion app?

thanks,

Larry Craddock



Fri, 23 Jun 2000 03:00:00 GMT  
 Close a Clarion app from another Clarion app?



Quote:
> Anyone know an easy way to close a Clarion, or any Windows application,
from
> another Clarion app?

> thanks,

> Larry Craddock

Larry:
Easy way? no
Way? yes.

to close another app, you need to find out the hwnd (window handle) for its
frame and use the api call postmessage() to send a close message to it
like:
              postmessage(hwnd,10H,0,0)
the easiest way to get a hwnd for another app is to use findwindow(,'Text
on Window Title').  There are lots of otherways.



Sat, 24 Jun 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Convert Clarion 2.0 app to Clarion 5.5 apps.

2. Automatically Close Clarion App at scheduled time

3. Closing Another App from within Clarion

4. Drag and drop, Clarion to non-Clarion app

5. Convert app from clarion 4 to clarion 5.5

6. running Clarion for DOS app out of Clarion 5.5

7. Odd problem with run-time linking to a clarion dll from a non-clarion app

8. trouble in converting .app from clarion 4 to clarion 5.5

9. Converting Clarion 4, Beta 1 apps to Clarion 4, Beta 2

10. mdi app not closing down, some threads just won't close #2

11. App-Ref: Need to break up a large App, App-Ref can help

12. Running Clarion APP under Linux

 

 
Powered by phpBB® Forum Software